示例#1
0
void expr(){
	bool_term();
	while (lookahead == BOOL_OP){
		match(BOOL_OP);
		bool_term();	
	}		
}
示例#2
0
Expr *Parser::bool_() {
    Expr *t = bool_term();
    while (lookahead_ == Token::OR) {
        match(Token::OR);
        t = new BoolTerm(t, bool_term());
    }
    return t;
}