Beispiel #1
0
 public void ParseExpression()
 {
     lexer.CharStream = new ANTLRStringStream("(9*(1-a))-4*(a.bc+3*4)");
     tokens.TokenSource = lexer;
     parser = new PascalParser(tokens);
     var res = parser.expression();
     Assert.AreEqual(res.List[8].Text, ")");
 }