title: Antlr4 order of token in lexer
body: <p>lexer grammar</p>
  
  <pre><code>DESC: D | D E S C;
  .
  .
  .
  INCREMENTOPTION: S | H | M | D;
  </code></pre>
  
  <p>parser grammar:</p>
  
  <pre><code>sortExpression: integer? sortFieldList Desc = DESC?;
  .
  .
  .
  incrementOption: integer INCREMENTOPTION;
  </code></pre>
  
  <p>in the case of input 'd' i have a problem.</p>
  
  <p>each of DESC or INCREMENTOPTION token be the upper token in lexer that is matched and the other one not matched
  what can i do?!</p>