It appears as though you are not returning anything on this line:
[ \t]+ { context = strdup(yytext); fwrite(context, sizeof(char), strlen(context), yyout); }
Without returning anything, it doesn't seem as though it would be recognized as a token, and thus would be ignored.
I'm not 100% sure however. I'm a little confused by your use of the variable "context" (which also seems to be a valid token?), but at any rate that may be your problem.
Stargazer712
2010-08-26 18:31:56