summaryrefslogtreecommitdiff
path: root/examples/manual/reject.lex
blob: 9e0bbd8a03878272cde7f0347e5809ae56aef4e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* 
 * reject.lex: An example of yyreject() and yyunput()
 *             misuse.
 */

%%
UNIX       { 
                yyunput('U'); yyunput('N'); yyunput('G'); yyunput('\0');
                yyreject();
           } 
GNU        printf("GNU is Not Unix!\n"); 
%%