fork download
  1. %{
  2. #include<stdio.h>
  3. %}
  4. %%
  5. (1 + 01)* (0 + λ) {printf("valid");}
  6. %%
  7. void main()
  8. {
  9. printf("enter string:");
  10. yylex();
  11. }
Success #stdin #stdout #stderr 0.02s 6988KB
stdin
01010
stdout
Standard output is empty
stderr
ERROR: /home/MfFDAN/prog:11:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit