fork download
  1. %%
  2. if|else|for|while|do|switch {
  3. printf("Valid Control Structure: %s\n", yytext);
  4. }
  5. .* ;
  6. %%
  7. int main() {
  8. yylex();
  9. return 0;
  10. }
Success #stdin #stdout #stderr 0.03s 6932KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/r41pVk/prog:10:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit