fork download
  1. %{
  2.  
  3. #include<stdio.h>
  4.  
  5.  
  6.  
  7. %}
  8.  
  9.  
  10.  
  11.  
  12.  
  13. %%
  14.  
  15. \/\/(.*) {};
  16.  
  17. \/\*(.*\n)*.*\*\/ {};
  18.  
  19. %%
  20.  
  21.  
  22.  
  23. int yywrap(){return 1;}
  24.  
  25.  
  26.  
  27. int main()
  28.  
  29. {
  30.  
  31. yyin=fopen("hello.c","r");
  32.  
  33. yyout=fopen("new.c","w");
  34.  
  35. yylex();
  36.  
  37. return 0;
  38.  
  39. }
Success #stdin #stdout #stderr 0.02s 6960KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/RLA9UL/prog:39:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit