title: Why in this code i am getting Lexical error is coming using javacc tool
body: <p>I have made a AssignStatement class and i am trying to pass the String using javacc.
  The assignment statement is of the form :a=b+c*d.
  Here, is the Source Code</p>
  
  <pre><code>options
  
  {
  
  static=false;
  DEBUG_TOKEN_MANAGER=true;
  }
  public class AssignStatement
   {      
  public static void main(String s[])
   {
   try
    {
      AssignStatement as=new AssignStatement(System.in);
      as.StartSymbol();
      System.out.println("Syntax checking successfully");
    }
  
   catch(Throwable e)
  
   {
    System.out.println("Syntex checking failed"+e.getMessage());
   }
  }
  }
  
  PARSER_END(AssignStatement)
  
  SKIP: {"" | "\t" | "\n" | "\r" }
  TOKEN:{ "(" | ")" | "+" | "*" | ":=" | &lt;NUM:(["0"-"9"])+&gt;|   &lt;ID:(["a"-"z"])+&gt; }
  
     void StartSymbol(): {}
    { 
     (AStmt())*&lt;EOF&gt;
    }
  
    void AStmt(): {}
   { 
     LOOKAHEAD(2) &lt;ID&gt; "=" AStmt() 
     | Term() ("+" Term())*
   }
  
     void Term(): {}
   {
     Factor() ("*" Factor())*
   } 
  
     void Factor(): {}
   {
     &lt;NUM&gt; 
     | &lt;ID&gt; 
     | "(" AStmt() ")"
   }
  </code></pre>
  
  <p>The Output i got after i did java AssignStatement</p>
  
  <p>"a=10+20*30"</p>
  
  <p>Current character : \" (34) at line 1 column 1
     No string literal matches possible.
     Starting NFA to match one of : { ,  }
  Current character : \" (34) at line 1 column 1
  Syntex checking failedLexical error at line 1, column 1.  Encountered: "\"" (34)
  , after : ""</p>
  
  <p>Output I should get</p>
  
  <p>syntex checked successfully.</p>