Lexical Analyzer/Scanner
Lexical Analyzer/Scanner
- Lexical Analyzer also keeps track of the source-coordinates of each token - which file name, line number and position. This is useful for debugging purposes.
- Lexical Analyzer is the only part of a compiler that looks at each character of the source text.