lex: split posix, bsd and linux (#10001)

This commit is contained in:
pixel
2023-04-01 06:50:08 +02:00
committed by GitHub
parent 90499b3bf2
commit 07bec36551
3 changed files with 36 additions and 2 deletions

17
pages/linux/lex.md Normal file
View File

@@ -0,0 +1,17 @@
# lex
> Lexical analyzer generator.
> Given the specification for a lexical analyzer, generates C code implementing it.
> More information: <https://manned.org/lex.1>.
- Generate an analyzer from a Lex file:
`lex {{analyzer.l}}`
- Specify the output file:
`lex {{analyzer.l}} --outfile {{analyzer.c}}`
- Compile a C file generated by Lex:
`cc {{path/to/lex.yy.c}} --output {{executable}}`