-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C.parse() keeps internal state #6
Comments
Yes, as noted in the readme, C parsers need to keep the list of type names as part of their state. Seems like it's useful behavior not to flush this state between parses - it means you can add some type names to the default parser, then parse all the snippets you want. I'm open to being convinced otherwise, but the behavior is intentional. If you want to control state explicitly, you can instantiate your own parser (
|
I would expect module / class methods to keep no state, and the |
Ok, I'm convinced. :) |
C.parse
seems to keep state somewhere, which breaks the ability to parse more than once;The text was updated successfully, but these errors were encountered: