public void ParseStdProc() { lexer.CharStream = new ANTLRStringStream("writeln(a.b.c, a);"); tokens.TokenSource = lexer; parser = new PascalParser(tokens); var res = parser.stdProc(); Assert.AreEqual(res.Args[0].Select(x => x.Text).First(), "a"); }
public void ParseStdProc() { lexer.CharStream = new ANTLRStringStream("writeln(a.b.c, a);"); tokens.TokenSource = lexer; parser = new PascalParser(tokens); var res = parser.stdProc(); Assert.AreEqual(res.Args[0].Select(x => x.Text).First(), "a"); }