title: ANTLR how to create a "rest of it" token
body: <p>I have realy simple DSL defined in ANTLR like this.</p>
  
  <pre><code>grammar Transformer;
  fragment  Digit : [0-9];
  Amp:'\'';
  Left:'(';
  Right: ')';
  Comma: ',';
  Id: [A-Za-z][a-zA-Z0-9]+;
  Int: '-'? Digit+;
  WS: [\n\r\t]+ -&gt;skip;
  
  FuncStart: '&gt;';
  DataStart: '#';
  
  
  parse: (datainput | function)+;
  qoutedtext: Amp .*? Amp;
  datainput: DataStart Id;
  function: FuncStart Id Left param (Comma param)* Right;
  param: (datainput|function|qoutedtext|Int);
  </code></pre>
  
  <p>When parsing this text</p>
  
  <pre><code>#Id;&gt;ToUpper(#Name);ThisShouldEndUpAsAToken&gt;FillLeft(#EmpNo,20,'abc')
  </code></pre>
  
  <p>This is the "tree" i get:
  <a href="https://i.stack.imgur.com/NTpID.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NTpID.png" alt="enter image description here"></a></p>
  
  <p>The tree looks as expecte, except that I am not able to catch the ThisShouldEndUpAsAToken tekst as a token. 
  I know that I do not have any parse in the grammer that should do that now, but I'm not able to figure out how to do it. </p>
  
  <p>HEEELP :) </p>