picoe / Eto.Parse

Recursive descent LL(k) parser for .NET with Fluent API, BNF, EBNF and Gold Grammars
MIT License
148 stars 30 forks source link

Gold Grammar parser does not support comments #4

Closed thargy closed 10 years ago

thargy commented 10 years ago

Gold grammars support single line comments where the comment starts with '!'.

e.g. ! This is a comment line rule = something ! with a comment

thargy commented 10 years ago

Actually, it turns out this is due to the requirement to include leading and trailing white spaces.