[Python-Dev] Where is defined the grammar of Python?

Nick Coghlan ncoghlan at gmail.com
Mon Oct 26 06:37:33 EDT 2015


On 24 October 2015 at 15:53, Stéphane Wirtel <stephane at wirtel.be> wrote:
> Hi all,
>
> Just to understand, we have the Parser/Python.asdl and Grammar/Grammar files.
>
> Which one is used for the AST ?
>
> I would like to understand this part of Python, could you help me?

An overview of all the moving parts is at
https://docs.python.org/devguide/grammar.html

A more detailed description of the compiler toolchain in CPython is at
https://docs.python.org/devguide/compiler.html

Cheers,
Nick.

>
> Thank you
>
> Stéphane
>
> --
> Stéphane Wirtel - http://wirtel.be - @matrixise
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com
>



-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list