sgml (amp|apos|gt|lt|quot) %% "<" printf("<"); ">" printf(">"); "&"{sgml}";" printf("&%s", yytext + 5); "<REC " printf("\n<REC "); "</REC>" printf("</REC>\n"); "</REC>" printf("</REC>\n"); . ECHO; \n ECHO; %%