BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
586 stars 165 forks source link

Bison does not directly support multiple entrypoints #350

Open andreasabel opened 3 years ago

andreasabel commented 3 years ago

The C backend generates code for several entrypoints, but bison allows only one start symbol. Currently, the generated code for the other entrypoints is superfluous and maybe confusing.

Maybe several entrypoints could be implemented using this workaround: https://www.gnu.org/software/bison/manual/html_node/Multiple-start_002dsymbols.html