Skip to content
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

Rewrite expression parser as a Pratt parser #10

Open
nlfiedler opened this issue Jan 26, 2014 · 0 comments
Open

Rewrite expression parser as a Pratt parser #10

nlfiedler opened this issue Jan 26, 2014 · 0 comments

Comments

@nlfiedler
Copy link
Owner

See http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/ for a discussion regarding a Pratt parser for parsing expressions that have infix, prefix, and postfix operators. Especially tantalizing is the treatment of ( as both a prefix operator (for grouping) and an infix operator (for function calls). Would make the existing parser much simpler and easier to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant