/* * public void Visit(Lit_list_ node, int modo){ * * } * * public void Visit(Interrogation_ node, int modo){ * * } * * public void Visit(Colon_ node, int modo){ * * } */ public string Visit(Or_ node, int modo) { var str = ""; str = str + Visit((dynamic)node[0], 4) + "\n"; str = str + Visit((dynamic)node[1], 4) + "\n"; str = str + "\t\tor\n"; return(str); }
public Node expr_or() { //Console.WriteLine("expr_or"); Node expr_and_ = expr_and(); if (CurrentToken == TokenCategory.OR) { //Console.WriteLine("while2"); var Or = new Or_(); var r = Expect(TokenCategory.OR); Or.AnchorToken = r; Or.Add(expr_and_); Or.Add(expr_and()); return(Or); } return(expr_and_); }
public void Visit(Or_ node, int modo) { VisitChildren(node, modo); }