My grammar file test.ebnf
looks like,
start = identifier ;
identifier =
/[a-z]*/ rest;
rest = /[0-9]*/ ;
When I run this grammar in the input "test1234", I want it to yield "test1234" as a single lexeme, but instead the AST looks like,
AST:
['test', '1234']
I've tried running with the nameguard
feature set to false with no luck. How can I get this behaviour without writing the rule like identifier = /[a-z]*[0-9]*/
?