Beispiel #1
0
 public void ParseIfStatement()
 {
     lexer.CharStream = new ANTLRStringStream("if( a.d.c>d.as.s) then begin end;");
     tokens.TokenSource = lexer;
     parser = new PascalParser(tokens);
     var res = parser.ifStatement();
     Assert.AreEqual(res.Cond.Eq, EqType.Gt);
 }