BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
583 stars 162 forks source link

Make terminator/separator optional for white-space separated lists #336

Open andreasabel opened 3 years ago

andreasabel commented 3 years ago

Declarations like

terminator Stm "";
separator Fun "";

do not offer any information besides that [Stm] and [Fun] should be supported as list categories.

These declaration could be inferred: E.g. if [Stm] is used in some rule, assume it is a white-space separated list.