[Python-Dev] relation between Python.asdl and Tools/compiler/ast.txt

Yoann Padioleau yoann.padioleau at facebook.com
Thu Jan 7 08:24:42 CET 2010


I would like to use astgen.py to generate python classes corresponding to the 
AST of something I have defined in a .asdl file, along the line of what is
apparently done for the python AST itself. I thought astgen.py would
take as an argument a .asdl file, but apparently it instead process a file
called ast.txt. Where does this file come from ? Is it generated from
Python.asdl ?

More information about the Python-Dev mailing list