void BoolExpression() { BoolTerm(); while(IsOrOp(Look)) { EmitLn("push rax"); switch(Look) { case '|': BoolOr();break; case '~': BoolXor();break; } } }
void BoolExpression(void) { message("BoolExpression"); BoolTerm(); while (IsOrop(Token[0])) { switch (Token[0]) { case '|': BoolOr(); break; case '^': BoolXor(); break; } } }
void BoolExpression() { BoolTerm(); NewLine(); while(IsOrOp(Look)) { Push(); switch(Look) { case '|': BoolOr(); break; case '~': BoolXor(); break; } NewLine(); } }
/* Parse and Translate a Boolean Expression * <bool_expression> ::= <bool_term> ( or_op <bool_term> )* */ void BoolExpression() { BoolTerm(); while(IsOrOp(Token)) { Push(); switch(Look) { case '|': BoolOr(); break; case '~': BoolXor(); break; default: break; } } }