lexical scanner

The first compiler phase, which reads source text character by character and groups it into tokens such as keywords, names and symbols.

In more detail

The course calls this phase the Scanner. Its tokens are handed to the parser, which builds the syntax tree. The scanner knows nothing about types; it only recognises the pieces of the language.

Related terms

Taught in

References