-
Notifications
You must be signed in to change notification settings - Fork 120
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
more doc? #100
Comments
I am not the author, but I can help with a few of these.
Use
Yes. In the template in tree/peg.go, I don't know about the rest, sorry. |
Not sure exactly what this means. Checking the manual for peg/leg, I see
which this package supports (see here), and one is as a regular part of the grammar
which just defines So I think the answer is: yes, Peg supports the |
added AST example: https://github.com/pointlander/peg/tree/master/grammars/calculator_ast |
Doc appears to be out of date. Notably, buffer[begin:end] doesn't work. Not very useful without it.
I'm also having trouble understanding how to build parse trees with peg. leg apparently has/had $$ = but when I try that, peg dumps core.
Also having trouble figuring out error handling. Like, how do I report an error up from embedded fragments?
Is the parser guaranteed to be "p"? It is used in examples, but not mentioned in doc.
Is there an equivalent to yyaccept or yyreject?
Is there a - operator as with leg?
The text was updated successfully, but these errors were encountered: