%{ #include "lab9.tab.h" #define ENDFILE 0 int yywrap(void) { return 1; } %} letter [a-zA-Z] alpha [a-zA-Z0-9_] white [ \t\n] other . %% <> { /* End-of-file */ return ENDFILE; } {white}+ { /* white space */ } {letter}{alpha}* { /* identifier */ return ID; } {other} { /* other character */ return yytext[0]; } %%