%{ #include #include #include "tok_cmdline.h" int filepos=0; struct gengetopt_args_info args; %} %% [a-zA-Z±æê³ñ󶿼¡ÆÊ£ÑÓ¦¯¬]{1,64} { printf("%04d %02d W %s\n", filepos, yyleng, yytext); filepos+=yyleng; if(args.interactive_flag) fflush(stdout); } [[:digit:]]{1,64} { printf("%04d %02d N %s\n", filepos, yyleng, yytext); filepos+=yyleng; if(args.interactive_flag) fflush(stdout); } [[:space:]\n]{1,64} { int i; printf("%04d %02d S ", filepos, yyleng); for(i=0; i