void Declarations() { while(strchr("lctvpf", Look)) { switch(Look) { case 'l': Labels(); case 'c': Constants(); case 't': Types(); case 'v': Variables(); case 'p': DoProcedure(); case 'f': DoFunction(); } } }
void Declarations(){ int other = 0; while(!other){ switch(Look){ case 'l' : Labels(); break; case 'c' : Constants(); break; case 't' : Types(); break; case 'v' : Variables(); break; case 'p' : DoProcedure(); break; case 'f' : DoFunction(); break; default : other = 1; } } }