logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Generate Lexical Analyzers - Lex | Online Free DevTools by Hexmos

Generate lexical analyzers with Lex, a powerful compiler construction tool. Create parsers and automate lexical analysis. Free online tool, no registration required.

lex

Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. Note: On most major OSes, this command is an alias for flex. More information: https://manned.org/lex.

  • Generate an analyzer from a Lex file, storing it to the file lex.yy.c:

lex {{analyzer.l}}

  • Specify the output file:

lex -t {{analyzer.l}} > {{analyzer.c}}

  • Compile a C file generated by Lex:

c99 {{path/to/lex.yy.c}} -o {{executable}}

See Also