Closed
Description
Functionality
- It should be able to export headers.
frontend/args.pyneeds a header, exported to thecpp/frontend_arg_def.ccargs::_Attributesshould be exported, as well asargs::Reader
asdl/format.pyneeds a header- probably tdop or arith_parse? and more
Other:
- it's way too slow. Can we leverage the caching somehow? I think it serializes to JSON or something?
- I don't like the "inverted" visitor pattern.
Maybe dump the AST to an ASDL schema? It would solve both problems. Compile-time reference counting could motivate us to do this?
- Weird bug: why do we get
asdl.tdopandoil.asdl.tdopafter looking at MyPy'sresult.graph?