Skip to content

The CFG really needs to be an attribute grammar #11

@Quincunx271

Description

@Quincunx271

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions