-
Notifications
You must be signed in to change notification settings - Fork 233
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
parser has state? #129
Comments
Yes, exactly. You need to instantiate a fresh parser to parse a fresh string. |
Do you think we should make a nicer API for people who want to parse many separate strings? For example a |
Despite the name, the instantiation of The only avoidable work that's done in the constructor is this line, making the Rules, but that will go away when I refactor Ideally we'd rename it [* @Hardmath123: FWIW, I'm slightly lying here. Assuming the grammar doesn't change, you can preserve the first column. But you can do that yourself by |
I ran into some trouble using
feed
iteratively, then saw in the docs that it is meant for reading input in parts.This means that if you want to parse multiple times you need to create a new parser object every time. Is that as intended?
The text was updated successfully, but these errors were encountered: