softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
507 stars 31 forks source link

Allow start state specification by id. #334

Closed SMartinScottLogic closed 2 years ago

SMartinScottLogic commented 2 years ago

Start of implementation against #325

SMartinScottLogic commented 2 years ago

Cancelled - numeric start conditions don't appear in spec that I can see after all. Instead, I'll look into push/pop logic for stacking current start condition.

ratmice commented 2 years ago

FWIW, I'm fine with not having them, I've never actually seen it used, they seem less clear than a text start condition, and the specification is somewhat vague surrounding it. below is the text in the spec where I had seen them mentioned

The initial state is indicated by the digit '0' or the token INITIAL.