fork download
  1. %{
  2. #include <stdio.h>
  3. %}
  4. %%
  5. [-+*/] {printf("ceci est un operator! \n");}
  6. .+ {printf("erreur !");}
  7. %%
  8. int yywrap()
  9. {
  10. reutrn 1;
  11. }
  12. main()
  13. {
  14. printf("Entrer on mot: \n");
  15. yylex();
  16. }
  17.  
Success #stdin #stdout #stderr 0.02s 6880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/81R2QT/prog:16:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit