// statement: ifStatement // | whileLoop // | expression SEMI Lexeme *statement(Parser *p) { if(ifStatementPending(p)) { return ifStatement(p); } else if(whileLoopPending(p)) { return whileLoop(p); } else { Lexeme *a = expression(p); match(p,SEMI); return a; } }
int main(void) { whileLoop(1); //getInputData(); return EXIT_SUCCESS; }