how to specify to use a name between single quotes in xtext [message #1049434] |
Thu, 25 April 2013 17:28  |
Eclipse User |
|
|
|
I am working on specifying a DSL using XTEXT.
Part of the syntax is that a number of names are between single quotes or double quotes.
Until now I am unsuccessful in achieving this.
What will be the rule in XTEXT for : Process 'my process'
and
"This is my definition" =
What I have tried for the single quote example is:
Process:
'Process' '\'' name=ID '\'' ;
but this will give the following error when I compile the .mwe2 file and run as Eclipseapplication: mismatched input ''hello'' expecting '''
Please point me to the right direction to solve this. It must be something trivial, but I cannot seem to solve this...
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05034 seconds