minix/external/bsd/flex/dist/examples/manual/myname.lex

16 lines
287 B
Text
Raw Normal View History

2012-06-06 16:10:32 +02:00
/*
*
* myname.lex : A sample Flex program
* that does token replacement.
*/
%%
%NAME { printf("%s",getenv("LOGNAME")); }
%HOST { printf("%s",getenv("HOST")); }
%HOSTTYPE { printf("%s",getenv("HOSTTYPE"));}
%HOME { printf("%s",getenv("HOME")); }
%%