/** * Function VisitLogicalExpr * Param : logical expression to visit * Return : the tree with the right and left operands */ public string VisitLogicalExpr(Expr.Logical expr) { return(Print(expr.Left) + " " + expr.OperatorToken.Text + " " + Print(expr.Right)); }