fork download
  1. %{
  2. #include<stdio.h>
  3. %}
  4. %%
  5. [-+*/] {printf("ceci est un operateur ! \n");
  6.  
  7. // F+
  8. // "ab"{2,}
  9. // [a-z|A-Z|0-9]{3}
  10. // [0-9]+
  11. // "-"?[0-9]+","[0-9]+
  12. // [A-Z][A-Z]
  13. %%
  14. int yywrap()
  15. {
  16. return 1;
  17. }
  18. main(){
  19. printf("entrer un mot: \n");
  20. yylex();
  21. }
  22.  
Success #stdin #stdout #stderr 0.02s 6956KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/qQR1zj/prog:21:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit