1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
%{ #include <config.h> #include <stdio.h> #include "parse_y.h" %} %option noyywrap %% \#[\$]+[a-zA-Z]*(\=[0-9]+)? return NEW_COUNTER; \#\{[a-zA-Z][a-zA-Z0-9\_]*\} return LABEL; \# return NO_INDENT; \#\# return RIGHT; \\\# return HASH; [^\n] return CHAR; [\n] return NEWLINE; %%