-
Notifications
You must be signed in to change notification settings - Fork 21
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
Document valid CFG for Hax #986
base: ast-generator
Are you sure you want to change the base?
Conversation
Alternative to #975 |
I am currently generating the AST as EBNF, thus we can use tools like https://rr.red-dove.com/ui to render a diagram of the AST. |
@cmester0 what does it take to get this in a reviewable state? The plan was to get this done this week. |
9ad1058
to
632484b
Compare
bb4fd9a
to
989e8e6
Compare
This should be mostly ready for review. Only missing description for some cases. |
9289838
to
1261da9
Compare
297981a
to
981d36a
Compare
Print EBNF formula as a command (not sure the setup is correct). Currently a full generic printer is implemented for this, however, we might be able to instrument e.g. a rust generic printer as a layered printer being able to print the EBNF formula. Currently uses #1038 to generate elements to be printed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the Rust printer, but instrumented towards EBNF printing
7be90f0
to
4e4d439
Compare
Generate the accepted Hax syntax using a shallow printer.