fork download
  1. %{
  2. int i=0;
  3. %}
  4. %%
  5. [a-z A-Z 0-9] {i++;}
  6. %%
  7. int yywrap(){}
  8. int main()
  9. {
  10. printf(" Enter the string:");
  11. yylex();
  12. printf("The number of character present in string are : %d\n" , i);
  13. retrurn 0;
  14. }
  15.  
  16.  
Success #stdin #stdout #stderr 0.02s 6936KB
stdin
 
stdout
Standard output is empty
stderr
ERROR: /home/VbFNSc/prog:15:1: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit