lexical scanner
Definitions
A program or component that reads source text and converts it into a sequence of tokens for a parser.
A person or tool that examines words or symbols in a text according to lexical rules.
Examples
The lexical scanner identifies keywords in the source code.
A lexical scanner converts characters into tokens.