title: Xtext terminal rule for float
body: <p>I have tried to define a float type in Xtext however I receive a error message when generate aritifact :</p>
  
  <pre><code>    The following token definitions can never be matched because prior tokens match the same input:RULE_FLOAT,RULE_INT
  </code></pre>
  
  <p>My terminal for float is as follows:</p>
  
  <pre><code>    terminal FLOAT returns ecore::EFloat: INT '.' INT;
  </code></pre>
  
  <p>My float is to replicate a float that is able to be accepted by Java:
  1.1 , 
  1 ,
  0.1</p>