2 * myname2.lex : A sample Flex program
3 * that does token replacement.
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")); }