Beispiel #1
0
 public void ParseProc()
 {
     lexer.CharStream = new ANTLRStringStream("name(a.b.c, a);");
     tokens.TokenSource = lexer;
     parser = new PascalParser(tokens);
     var res = parser.proc();
     Assert.AreEqual(res.Name.Text, "name");
 }