lex: add --outfile example
This commit is contained in:
@@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
`lex {{analyser.l}}`
|
`lex {{analyser.l}}`
|
||||||
|
|
||||||
|
- Specify the output file:
|
||||||
|
|
||||||
|
`lex {{analyser.l}} --outfile {{analyser.c}}
|
||||||
|
|
||||||
- Compile a C file generated by lex:
|
- Compile a C file generated by lex:
|
||||||
|
|
||||||
`cc {{path/to/lex.yy.c}} --output {{executable}}`
|
`cc {{path/to/lex.yy.c}} --output {{executable}}`
|
||||||
|
Reference in New Issue
Block a user