fork download
  1.  
  2. %{
  3. #include<stdio.h>
  4. %}
  5. %%
  6. [ \t]+ ;
  7.  
  8. #.* { printf("\n%s is Comment", yytext); }
  9.  
  10. \n { ECHO; } // Print the newline as is
  11. %%
  12. int main() {
  13. yylex(); // Start lexical analysis
  14. }
  15. int yywrap() {
  16. return 1;
Success #stdin #stdout #stderr 0.02s 6776KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/TPXscb/prog:16:9: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit