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

The CFG really needs to be an attribute grammar #11

Open
Quincunx271 opened this issue Jan 18, 2022 · 0 comments · May be fixed by #14
Open

The CFG really needs to be an attribute grammar #11

Quincunx271 opened this issue Jan 18, 2022 · 0 comments · May be fixed by #14
Labels
enhancement New feature or request

Comments

@Quincunx271
Copy link
Owner

https://en.wikipedia.org/wiki/Attribute_grammar

This doesn't need to be a free-form attribute grammar, but there needs to be some kind of information decoration such that the parse can synthesize some AST. Having a bool parse(...) function isn't very useful; we want to be able to extract the parse tree information.


When designing this, keep in mind that it is desirable to be able to support free-form attributes on the grammar, because added flexibility in that way is something very powerful with Bison that may be worth replicating here. For the first pass, there's no need to stress over it.

@Quincunx271 Quincunx271 added the enhancement New feature or request label Jan 18, 2022
@Quincunx271 Quincunx271 linked a pull request Feb 3, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant