fork download
  1. %
  2. {
  3. #include <stdio.h>
  4. int flag = 0;
  5. %}
  6.  
  7. %%
  8. [a - z.0 - 9 _] + @[a - z] + ".com"
  9. flag = 1;
  10. %%
  11.  
  12. int main() {
  13.  
  14. printf("Please Enter your email: ");
  15. yylex();
  16. if (flag == 1)
  17. printf("This email is accepted");
  18. else
  19. printf("This email is not Accepted");
  20. }
Success #stdin #stdout #stderr 0.02s 6992KB
stdin
aa@gmail.com
stdout
Standard output is empty
stderr
ERROR: /home/Y70Wv0/prog:20:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit