Simple question about the lexer [message #1750314] |
Mon, 19 December 2016 20:03 |
|
The following DSL:
grammar com.septentrio.sandbox.flax.Flax with org.eclipse.xtext.common.Terminals
generate flax "http://www.septentrio.com/sandbox/flax/Flax"
Box:
'label' name=QualifiedName
items+=Item*;
Item:
'item' name=ID;
QualifiedName:
ID ('.'ID)*;
cannot parse this:
label flax.item.mybox
item Book
item MagicWand
item DiscoBall
It says "Missing RULE_ID at item".
I figured that any "keyword" cannot be used for matching the rule ID but I'm wondering why?
Also I noticed that the following piece of text seems valid:
label my . blue . box
item Book
item MagicWand
item DiscoBall
How can I disallow spaces in the QualifiedName rule?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds