I am writing a grammar in which I am using the following rule for the qualified name:
ID ("." ID)*;
However, I have a specific case where the element that I will reference is as follows:
And is located inside an element that is identified by an id.
So if I try to write the following grammar:
ID.ID.ID.wheel (let's say that I am referencing this from another file where I will have multiple ID in front of wheel).
I get mismatched expecting RULE_ID. I also tried it with STRING but it doesn't work. wheel in this case will be used as a keyword so any suggestions on how to change the qualified name to accept this specific case?