repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
external
/
bsd
/
flex
/
dist
/
examples
/
manual
/
myname.lex
blob
2e36095f6ebb98b0b4fae5a3a001c37fe7e66437
1
/*
2
*
3
* myname.lex : A sample Flex program
4
* that does token replacement.
5
*/
6
7
%%
8
9
%NAME { printf("%s",getenv("LOGNAME")); }
10
%HOST { printf("%s",getenv("HOST")); }
11
%HOSTTYPE { printf("%s",getenv("HOSTTYPE"));}
12
%HOME { printf("%s",getenv("HOME")); }
13
14
%%
15