fork download
  1.  
  2. %{
  3. #include<stdio.h>
  4. %}
  5.  
  6.  
  7. %%
  8.  
  9. \/\/(.*) {};
  10. \/\*(.*\n)*.*\*\/ {};
  11. %%
  12.  
  13. int yywrap()
  14. {
  15. return 1;
  16. }
  17.  
  18.  
  19. int main()
  20. {
  21. yyin=fopen("input6.c","r");
  22. yyout=fopen("out.c","w");
  23. /*call the yylex function.*/
  24. yylex();
  25. return 0;
  26. }
  27.  
  28.  
Success #stdin #stdout #stderr 0.03s 6880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/7yto0E/prog:27:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit