-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor string parser and lexer: mainly for webapp usage #25
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
Labels
Comments
Well, you could use an LL(1) parser to read the expression precedence and give you a polish notation expression. Try using this website to test this grammar: D' -> v C D'
D' -> ''
C -> I C'
C' -> ^ I C'
C' -> ''
I -> E I'
I' -> => E I'
I' -> ''
E -> N E'
E' -> <=> N E'
E' -> ''
N -> ~ A
N -> A
A -> ( P )
A -> id |
Thank you for this contribution! A formal parser will be really useful! |
Maybe can be useful: https://github.com/vy/meta-sexp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
p^q
.Example:
The text was updated successfully, but these errors were encountered: