Esempio n. 1
0
 public void ParseIdentifierList()
 {
     lexer.CharStream = new ANTLRStringStream("ID1,ID2");
     tokens.TokenSource = lexer;
     parser = new PascalParser(tokens);
     var actual = new[] { "ID1", "ID2" };
     var res = parser.identifierList();
     CollectionAssert.AreEqual(res.Select(x => x.Text), actual);
 }