I just recently started diving into the world of Xtext and am stuck for quite some time now.
I have created a grammar and when I test my reference model, I get an error:
mismatched input '"At which university are you studying?"' expecting RULE_ID
The error occurs at line 11 of the model.
Even after some time of googling, I couldn't get any wiser as to why this problem occurs. Something apparently isn't working with the References.
Maybe someone could help me find this problem? I'm sure it is quite some beginner mistake I made.
Thank you very much!
P.s.: Please find the model and the grammar attached as .txt files.
I am using Eclipse Modeling Tools
Version: Kepler Service Release 1
Build id: 20130919-0819
and the Xtext Plugin
do you need some more information?
first you should avoid blanks in keywords. use 'this' 'is' 'a' 'sentence' instead
then your grammar seems to be ambigous regarding the comma
then question=[ClosedQuestion] is a cross reference. sure you want to do that.
if so change the grammar to question=[ClosedQuestion|STRING], you would although have to change the IQualifiedNameProvider
since you can cross ref only stuff that has a name