Difference between revisions of "Lex Tutorial"
Jump to navigation
Jump to search
(Created page with "thumb|Phases of Compilation") |
|||
Line 1: | Line 1: | ||
[[File:Compilation phases.png|thumb|Phases of Compilation]] | [[File:Compilation phases.png|thumb|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. |
Revision as of 00:28, 10 August 2020
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.