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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -