Concept Flow - Tokens, patterns, and lexemes
Source Code Text
Lexical Analyzer
Pattern Matching
Identify Lexemes
Generate Tokens
Pass Tokens to Parser
The source code is read by the lexical analyzer, which uses patterns to find lexemes and then generates tokens to pass to the parser.