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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.