bnf icon indicating copy to clipboard operation
bnf copied to clipboard

Allow comments in grammars

Open shnewto opened this issue 7 years ago • 0 comments

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:

  • Do we look for the ; all along the way?
  • Do we make a "first pass" that strips all comments before parsing?

shnewto avatar Jan 10 '18 19:01 shnewto