fork download
  1.  
  2. %%
  3.  
  4. "340" {digCount = digCount+10;}
  5. \n { charCount++; lineCount++; }
  6. . { charCount++; }
  7. %%
  8.  
  9. int main(void) {
  10. yylex();
  11. printf("Characters: %d, Words: %d, Lines: %d, Dig: %d\n",
  12. charCount, wordCount, lineCount, digCount);
  13. return 0;
  14. }
  15. int yywrap(void) {
  16. return 1;
  17. }
Success #stdin #stdout #stderr 0.03s 7020KB
stdin
gu 340 cxcx
stdout
Standard output is empty
stderr
ERROR: /home/KKSpdX/prog:4:10: Syntax error: Operator expected
ERROR: /home/KKSpdX/prog:17:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit