fork download
  1. %{
  2. #include<stdio.h>
  3. %}
  4.  
  5. %%
  6. [1*001+01*]+] {printf("valid");}
  7.  
  8. .* {printf("invalid"); }
  9. %%
  10.  
  11.  
  12. int main()
  13. {
  14. printf("\n Enter the input");
  15. yylex();
  16. return 0;
  17. }
Success #stdin #stdout #stderr 0.03s 6852KB
stdin
10010
stdout
Standard output is empty
stderr
ERROR: /home/UrM7Bl/prog:17:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit