5 #define debug(arg) // g_message("scan: " arg, yytext);
14 CODE [ \t\n]([^%\n]|%[^>])*
17 <INITIAL>{START} { debug("START [%s]"); yylval = g_strdup(yytext); BEGIN(IN); return START; }
18 <INITIAL>{DATA} { debug("DATA [%s]"); yylval = g_strdup(yytext); return DATA; }
19 <IN>{END} { debug("END [%s]"); yylval = g_strdup(yytext); BEGIN(INITIAL); return END; }
20 <IN>= { debug("OUT [%s]"); yylval = g_strdup(yytext); return OUT; }
21 <IN>{CODE} { debug("CODE [%s]"); yylval = g_strdup(yytext); return DATA; }
22 [\n] { debug("NL [%s]"); }