Scanner
Scanner is essentially¹ a parser that produces Tokens
from a stream of characters. The tokens it produces are typically
passed to parsers in TokenParsers.
- Note:
¹
Scanneris really aReaderofTokens
Scanner is essentially¹ a parser that produces Tokens
from a stream of characters. The tokens it produces are typically
passed to parsers in TokenParsers.
¹ Scanner is really a Reader of Tokens