%{ #include<stdio.h> %} %% abc {print("ABC");} .|\n {putchar(yytext[0]);} %% int main(void){ yylex(); return 0; }
abc
Standard output is empty
ERROR: /home/hWbKwX/prog:11:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit