textX / Arpeggio

Parser interpreter based on PEG grammars written in Python http://textx.github.io/Arpeggio/
Other
270 stars 55 forks source link

Automatic detection of main rule name assumming it is the first one #80

Open KOLANICH opened 4 years ago

KOLANICH commented 4 years ago

Arpeggio requires explicit first rule name. It can be assummed it is the first one - it is the usual convention. But that the user has to provide it is hardcoded in ParserPEG architecture (PEGVisitor is hardcoded), it cannot be changed nicely (without monkey-patching) without changes in arpeggio itself.