public override bool Visit(LogicalXor node) { traverse(node.left); outputCode(" ^ ", false, false); traverse(node.right); //Visit((LogicalBinaryExpression) node); return(true); }
void LogicXor(out Expression exp) { Expression second; Comparison(out exp); while (la.kind == 28) { Get(); Token tok = t; Comparison(out second); if (!ExpectBool(exp, tok, false)) { return; } if (!ExpectBool(second, tok, true)) { return; } exp = new LogicalXor((TypedExpression <bool>)exp, (TypedExpression <bool>)second); } }
public virtual T Visit(LogicalXor node) { return(Visit((LogicalBinaryExpression)node)); }
public virtual void Visit(LogicalXor node) { }
public override bool Visit(LogicalXor node) { Visit((LogicalBinaryExpression)node); return(true); }
void LogicXor(out Expression exp) { Expression second; Comparison(out exp); while (la.kind == 28) { Get(); Token tok = t; Comparison(out second); if (!ExpectBool(exp, tok, false)) { return; } if (!ExpectBool(second, tok, true)) { return; } exp = new LogicalXor((TypedExpression<bool>)exp, (TypedExpression<bool>)second); } }