diff --git a/pages/common/lex.md b/pages/common/lex.md index 1f60a59355..7b5d95c848 100644 --- a/pages/common/lex.md +++ b/pages/common/lex.md @@ -1,9 +1,9 @@ # lex > Lexical analyser generator. -> Given a lexical analyser, generates C code implementing it. +> Given the specification for a lexical analyser, generates C code implementing it. -- Generate analyser from Lex file: +- Generate an analyser from a Lex file: `lex {{analyser.l}}` @@ -11,6 +11,6 @@ `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}}`