Compiler Python

"Martin v. Löwis" martin at
Tue Sep 11 23:10:11 CEST 2007

> Someone knows since as I can obtain the information detailed about the
> compiler of Python? (Table of tokens, lists of productions of the
> syntactic one , semantic restrictions...)

The EBNF grammar is in Grammar/Grammar; this also implies the list
of tokens. Another list of tokens in Include/token.h. The semantic
restrictions are mostly implemented as SyntaxError. These are
raised under various circumstances - search the code for SyntaxError,
for details.


More information about the Python-list mailing list