Next: Line structure Up: Python Reference Manual Previous: Notation

Lexical analysis

A Python program is read by a parser. Input to the parser is a stream of tokens, generated by the lexical analyzer. This chapter describes how the lexical analyzer breaks a file into tokens.



guido@cwi.nl