Parser wants spaces [message #1857917] |
Mon, 06 March 2023 12:22  |
Eclipse User |
|
|
|
Hello everyone.
Most likely I'm making a rookie mistake. Maybe you can help me. I have the following example for a really small grammar.
SWSyntax:
MultirowSyntaxitem = MultiSyntax;
MultiSyntax:
Syntaxitem (Syntaxitem)*;
Syntaxitem:
ALPHACHARACTERSET;
terminal ALPHACHARACTERSET: "a" | "x";
Why does the generated parser accept in the editor
a a a a x a x a x
but not
aaaaaxxxa ?
Errortext is : mismatched input 'aa' expecting RULE_ALPHACHARACTERSET
Why does he always want spaces? The whole thing should match like regular expression [a-z].
Thanks very much.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04361 seconds