fork download
  1. %{
  2. #include<stdio.h>
  3. %}
  4.  
  5. %%
  6. [aAeEiIoOuU]{2} { printf("ZZ"); } /* Replace a pair of vowels with "ZZ" */
  7. [aAeEiIoOuU]{3,} { printf("%s", yytext); } /* Do not change if more than two vowels are present */
  8. .|\n { printf("%s", yytext); } /* Print all other characters as is */
  9. %%
  10.  
  11. int main(){
  12. yylex();
  13. return 0;
  14.  
Success #stdin #stdout #stderr 0.02s 6876KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/IySGkZ/prog:13:13: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit