Exemplo n.º 1
0
// 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;
  }
}
Exemplo n.º 2
0
int main(void) {
	whileLoop(1);
	//getInputData();
	return EXIT_SUCCESS;
}