fork download
  1. %option noyywrap
  2. %{
  3. #include <stdio.h>
  4. %}
  5. Init [a-zA-Z]+
  6. Next [a-zA-Z0-9]*
  7. GmailAdd {Init}{Next}@gmail.com
  8. %%
  9. {GmailAdd} {printf("Valid Email");}
  10. .* {printf("Nah man...");}
  11. %%
  12.  
  13. int main(){
  14. yylex();
  15. return 0;
  16. }
Success #stdin #stdout #stderr 0.03s 6828KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/Sr5EZk/prog:16:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit