bnf
bnf copied to clipboard
Allow comments in grammars
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?