flâneur — a map of the web's best reading

Scanning · Crafting Interpreters

craftinginterpreters.com · 7,344 words · saved by 1 readers

The first step in any compiler or interpreter is scanning. The scanner takes in raw source code as a series of characters and groups it into a series of chunks we call tokens. These are the meaningful “words” and “punctuation” that make up the language’s grammar.

4 Scanning Take big bites. Anything worth doing is worth overdoing. Robert A. Heinlein, Time Enough for Love The first step in any compiler or interpreter is scanning . The scanner takes in raw source code as a series of characters and groups it into a series of chunks we call tokens . These are the meaningful "words" and "punctuation" that make up the language's grammar. This task has been variously called "scanning" and "lexing" (short for "lexical analysis") over the years. Way back when computers were as big as Winnebagos but had less memory than your watch, some people used "scanner" only

Explore this link on the map →

related reading