Remove building with NOCRYPTO option
[minix3.git] / external / bsd / flex / dist / examples / manual / myname2.lex
blobcef55d881766aabfbafefdf5648ffbea2b21609d
1 /*
2  * myname2.lex : A sample Flex program
3  *               that does token replacement.                      
4  */
6 %{
7 #include <stdio.h>
8 %}
10 %x STRING
12 \"                ECHO; BEGIN(STRING); 
13 <STRING>[^\"\n]*  ECHO;
14 <STRING>\"        ECHO; BEGIN(INITIAL);
16 %NAME     { printf("%s",getenv("LOGNAME")); }
17 %HOST     { printf("%s",getenv("HOST"));    }
18 %HOSTTYPE { printf("%s",getenv("HOSTTYPE"));}
19 %HOME     { printf("%s",getenv("HOME"));    }