Skip to content

Better CFG Syntax #2

@LeoWoerteler

Description

@LeoWoerteler

The syntax for specifying the context-free grammar isn't very expressive, some enhancements would be:

  • allow grouping, optional parts (?) repetition (* and +) in right-hand sides (RHS) of rules:

    A -> (B C?)+ D*

  • more than one RHS, separated by e.g. |:

    Lit -> NumLit
         | StrLit
    

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions