Compile a C file generated by Lex

lex

  • Lexical analyzer generator.
    Given the specification for a lexical analyzer, generates C code implementing it.
    More information: <https://manned.org/lex.1>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cc {{path/to/lex.yy.c}} --output {{executable}}

click the source code to copy install lex on any operating system with command-not-found.com