shnewto / bnf

Parse BNF grammar definitions
MIT License
256 stars 22 forks source link

Allow comments in grammars #37

Open shnewto opened 6 years ago

shnewto commented 6 years ago

We need a way to allow incorporating comments into a grammar. It seems somewhat standard to use the ; to indicate the start of a comment and a \n to close it. It'd be a good add I think to make that work.

A couple initial questions: