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 - terminal with sequence #36

Open tf3pm opened 7 years ago

tf3pm commented 7 years ago

Again similar definition of GOLD grammar terminal: Identifier = {Letter}{Digit}+ is transformed to SequenceParser with not null Separator. Thus input "a 1" matches this terminal.

In code GoldGrammar.cs - line 218 - for every sequences (RegExp included) is Separator defined: var seq = new SequenceParser(parsers) { Separator = sep };

Thanks, Tomas