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

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