lex: add page
This commit is contained in:
12
pages/common/lex.md
Normal file
12
pages/common/lex.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# lex
|
||||||
|
|
||||||
|
> Lexical analyser generator.
|
||||||
|
> Given a lexical analyser, generates C code implementing it.
|
||||||
|
|
||||||
|
- Generate analyser from Lex file.
|
||||||
|
|
||||||
|
`lex example.l`
|
||||||
|
|
||||||
|
- Compile a C file generated by lex.
|
||||||
|
|
||||||
|
`gcc lex.yy.c -o example`
|
Reference in New Issue
Block a user