18. Tokenization
18. Tokenization Tokenization is the first structural stage in CPython’s compilation pipeline. It receives Python source text and produces a stream of tokens. The parser consumes that token stream and builds syntax structure from it. At this stage, CPython does not yet know whether a program is meaningful. It only recognizes lexical units: names, numbers, strings, operators, newlines, indentation, and end-of-file markers. The tokenizer turns this: def add(a, b): return...