From adf0c97b514e7e6efb86f4fc5191766e2a5ec48c Mon Sep 17 00:00:00 2001 From: Liam McMenemie Date: Mon, 11 Dec 2017 21:30:23 +0000 Subject: [PATCH] lex: add --outfile example --- pages/common/lex.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/lex.md b/pages/common/lex.md index aba6bff4d3..1972f72159 100644 --- a/pages/common/lex.md +++ b/pages/common/lex.md @@ -7,6 +7,10 @@ `lex {{analyser.l}}` +- Specify the output file: + +`lex {{analyser.l}} --outfile {{analyser.c}} + - Compile a C file generated by lex: `cc {{path/to/lex.yy.c}} --output {{executable}}`