Compiler Python

"Martin v. Löwis" martin at v.loewis.de
Tue Sep 11 17:10:11 EDT 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.

Regards,
Martin



More information about the Python-list mailing list