Beispiel #1
0
 public void ParseIdentifier()
 {
     lexer.CharStream = new ANTLRStringStream("ID1");
     tokens.TokenSource = lexer;
     parser = new PascalParser(tokens);
     const string actual = "ID1";
     var res = parser.identifier();
     Assert.AreEqual(res.Text, actual);
 }