Error message in xtext editor [message #1111493] |
Wed, 18 September 2013 05:43  |
Eclipse User |
|
|
|
Hi,
My grammar has a field 'variable'. The xtext grammar is as below:
VariableType:
"varType" (name=ID)? "{"
"variable" variable=SignedDouble
"}"
;
SignedDouble returns ecore::EDouble:
('-')? (INT '.' INT)
;
terminal INT returns ecore::EInt:
'0'..'9' ('0'..'9'|'_')*
;
xcore file is as below:
class VariableType{
String name
Double variable
}
When I enter variable 1.0 in my editor, it shows the below error message :
Multiple markers at this line
- Couldn't convert 'null' to EDouble.
- mismatched input '1.0' expecting RULE_INT
Could anybody tell me what the problem is?
Thanks in advance
|
|
|
|
Powered by
FUDForum. Page generated in 0.23820 seconds