|
From: | Vinu V Das |
Subject: | YY_FLUSH_BUFFER |
Date: | Sat, 17 Jun 2006 14:08:47 +0530 |
%%
[a-z]+ { printf("\nThe lower case token is = ");
ECHO;
YY_FLUSH_BUFFER;
printf("\nThe token after flush = ");ECHO;
}
[a-zA-Z]+ { printf("\nThe mixed token is = ");
ECHO;
}
%%
main()
{
yylex();
}
--------- output -----------------------
address@hidden yytextTest]# ./a.out
good morning
The lower case token is = good
The token after flush = od
[1]+ Stopped ./a.out
address@hidden yytextTest]#
[Prev in Thread] | Current Thread | [Next in Thread] |