예제 #1
0
파일: parser.c 프로젝트: jmhossler/proglang
// 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;
  }
}
예제 #2
0
파일: 09_03.c 프로젝트: cy2296/coding
int main(void) {
	whileLoop(1);
	//getInputData();
	return EXIT_SUCCESS;
}