Exemple #1
0
 public AstNode Parse(string st)
 {
     try
     {
         var lexer = new JackLexer();
         rgtoken = lexer.Entoken(st).ToList();
         itoken  = 0;
         return(Fill(null, ParseClass()));
     }
     catch (Erparse er)
     {
         er.StSrc = st;
         throw;
     }
 }
Exemple #2
0
 public AstNode Parse(string st)
 {
     try
     {
         var lexer = new JackLexer();
         rgtoken = lexer.Entoken(st).ToList();
         itoken = 0;
         return Fill(null, ParseClass());
     }
     catch (Erparse er)
     {
         er.StSrc = st;
         throw;
     }
 }