dsl - Xtext terminal rule for float -
dsl - Xtext terminal rule for float -
i have tried define float type in xtext receive error message when generate aritifact :
next token definitions can never matched because prior tokens match same input:rule_float,rule_int
my terminal float follows:
terminal float returns ecore::efloat: int '.' int;
my float replicate float able accepted java: 1.1 , 1 , 0.1
terminal rules order dependent. first match wins. grammar seems contain rule matches int.int that's impossible tell info provide. speaking it's thought utilize data type rules describe syntax of floats.
that read (note missing terminal keyword):
float returns ecore::efloat: int '.' int;
dsl xtext
Comments
Post a Comment