%{ #include<studio.h> #include<stdlib.h> int count = 0,%] %} %% [a-zA-Z][a-zA-Z0-9_]+ c++; "\n" printf("%d",c);c=0; ; %% int main() { yylex(); return 0; } int yywrap(void){}
Standard input is empty
Standard output is empty
ERROR: /home/Yj0Wfk/prog:17:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit