Lex Tutorial

From MKWiki
Revision as of 00:28, 10 August 2020 by Mkwiki (talk | contribs)
Jump to navigation Jump to search
Phases of Compilation

Lex

  • Lex is a program that generates lexical analyzer. It is used with YACC parser generator.
  • The lexical analyzer is a program that transforms an input stream into a sequence of tokens.
  • It reads the input stream and produces the source code as output through implementing the lexical analyzer in the C program.