%{ #include<stdio.h> #include<stdlib.h> int count =0;] %} %% [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/pjCo7r/prog:16:18: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit