static void stmtlist() { switch(token){ case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case '!': stmt(); morestmts(); break; default: ERROR("Unexpected token %c\n", token); exit(EXIT_FAILURE); } }
static void stmtlist() { while(token != ';') { if(token == '.') return; else stmt(); } morestmts(); return; }
static void stmtlist() { switch (token) { case '%': case '&': case '#': case 'a': case 'b': case 'c': case 'd': stmt(); morestmts(); break; default: ERROR("Syntax error: Expected stmt.\n"); } }
static void stmtlist() { stmt(); morestmts(); /* YOUR CODE GOES HERE */ }
static void stmtlist() { stmt(); morestmts(); }