Skip to content

mycpp tool improvements #568

Closed
Closed
@andychu

Description

@andychu

Functionality

  • It should be able to export headers.
    • frontend/args.py needs a header, exported to the cpp/frontend_arg_def.cc
      • args::_Attributes should be exported, as well as args::Reader
    • asdl/format.py needs 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.tdop and oil.asdl.tdop after looking at MyPy's result.graph ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions