Couldn't resolve reference to ... [message #1753036] |
Wed, 01 February 2017 05:13  |
Eclipse User |
|
|
|
I have this grammar:
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"
Model:
greetings+=(Greeting| Test)*;
Greeting:
'Hello' test=[Test] 'age' age=INT '!';
Test:
'Bye' sName=ID '!' 'see' 'you' date=ID ';'
;
But I get an error with this configuration:
Hello sample age 2!
Bye sample ! see you sept;
The error is:
Description Resource Path Location Type
Couldn't resolve reference to Test 'sample'. test.mydsl /sample line: 1 /sample/test.mydsl MyDsl Problem
I need to use the variable sName, any hints how to configure xtext to accept sName instead of name?
[Updated on: Wed, 01 February 2017 05:14] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07347 seconds