source:
trunk/flex/examples/manual/myname.lex@
3040
| Last change on this file since 3040 was 3031, checked in by , 19 years ago | |
|---|---|
| File size: 287 bytes | |
| Line | |
|---|---|
| 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 |
Note:
See TracBrowser
for help on using the repository browser.
