-
Notifications
You must be signed in to change notification settings - Fork 93
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
Having trouble making recursive parsers #36
Comments
The parsers are LL(1) which means that in your or parser the float parser
|
Ah. I never knew what that meant. Thank you so much for helping me and for responding so quickly. |
As an aside I also have the language extension crate at https://github.com/Marwes/parser-combinators-language. Its a bit rough but there might be something of use for you there. |
I am building a parser for a language of my imagination, I am having problem with recursive parsers. Take a look at this gist:
https://gist.github.com/Ralle/336941d1472a598d1121
I can parse ints and I can parse floats, but as soon as I make a pair using '(int, int)' it expects a float. I don't understand why this happens. I tried switching around the int_parser and float_parser but then it would obviously not parse floats as it succesfully parses the int and then don't know what to do with the '.'.
Please advice.
The text was updated successfully, but these errors were encountered: