Esempio n. 1
0
void Parser::WhileStmt() {
	ExprRec result;

	Match(WHILE_SYM);
	Match(LBANANA);
	code.WhileTag(); /* TODO that is a new action symbol - add to grammar */
	Condition(result);
	Match(RBANANA);
	code.WhileBegin(result);
	StmtList();
	Match(END_SYM);
	code.WhileEnd();
}