Autogenerate the code to export AST constants