flex
Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. More information: https://manned.org/flex.
- Generate an analyzer from a Lex file, storing it to the file
lex.yy.c:
flex
- Write analyzer to
stdout:
flex
- Specify the output file:
flex
- Generate a batch scanner instead of an interactive scanner:
flex
- Compile a C file generated by Lex:
cc -o
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
