fork download
  1. %
  2. {
  3. int flag = 0; %
  4. } %
  5. % [a - z.0 - 9 _] + @[a - z] + ".com" | ".in"
  6. flag = 1; %
  7. %
  8. main() {
  9. yylex();
  10. if (flag == 1)
  11. printf("Accepted");
  12. else
  13. printf("Not Accepted");
  14. }
Success #stdin #stdout #stderr 0.02s 6912KB
stdin
dkant%gmail.com
stdout
Standard output is empty
stderr
ERROR: /home/ZvJn1u/prog:14:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit