title: JavaCC - Simple expression
body: <p>What should my void decleration() if possible string input is parsed based on the image.</p>
  
  <pre><code>SKIP :
  {
  &lt; " " | "\t" | "\r" | "\n" | "\r\n" &gt;
  | &lt;"//" (~["\n","\r"])* ("\n"|"\r"|"\r\n") &gt;
  | &lt;"/*"(~["/"])*  "*""/" &gt;
  }
  TOKEN : { &lt; VAR: "VAR" &gt; }
  TOKEN : { &lt; AS: "AS" &gt;}
  TOKEN : /* KEYWORDS */
  {
      &lt; TYPE: "INT"| "BOOL"|"FLOAT" &gt;
  }
  
  TOKEN :
  {
    &lt; EQUALS: "=" &gt;
  }
  TOKEN:
  {
    &lt; PLUS : "+" &gt;|&lt; MINUS :"-" &gt;|&lt; MUL: "*" &gt;|&lt; DIV: "/" &gt;|&lt; COMM: ","&gt;
  }
  TOKEN:
  {
      &lt; VARIABLE: (["a"-"z", "A"-"Z", "0"-"9"])+ &gt;
  }
  
  void decleration(): {} { &lt;VAR&gt; (&lt;VARIABLE&gt;|&lt; COMM &gt;|&lt;EQUALS&gt;)+ &lt;AS&gt; &lt;TYPE&gt;}
  </code></pre>
  
  <p>I'm still new to JavaCC, so please forgive my code it its bad, Where can I find some sources on making custom compiler using JavaCC.</p>
  
  <p>Thank you.</p>