public string Visit(And_ node, int modo) { var str = ""; str = str + Visit((dynamic)node[0], 4) + "\n"; str = str + Visit((dynamic)node[1], 4) + "\n"; str = str + "\t\tand\n"; return(str); }
public Node expr_and() { //Console.WriteLine("expr_and"); //Console.WriteLine("expr_and"); Node expr_comp_ = expr_comp(); while (CurrentToken == TokenCategory.AND) { //Console.WriteLine("while3"); var And = new And_(); var r = Expect(TokenCategory.AND); And.AnchorToken = r; And.Add(expr_comp_); And.Add(expr_comp()); return(And); } return(expr_comp_); }
public void Visit(And_ node, int modo) { VisitChildren(node, modo); }