%{ #include<stdio.h> %} digit[0-9] letter[a-zA-Z] %% {letter}({letter}|{digit})* printf("id: %s\n",yytext); \n printf("new line\n"); %% main() { yylex(); }
Standard input is empty
Standard output is empty
ERROR: /home/EfrzUi/prog:13:0: Syntax error: Unexpected end of file ERROR: '$runtoplevel'/0: Undefined procedure: program/0 Exception: (3) program ? EOF: exit