Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[RFC] Add visitor capabilities to ASTs #4894

Open
@thejcannon

Description

@thejcannon

Summary

I'm porting an AST visitor from Python to RustPython and would love to mirror the code which is using ast.NodeVisitor, but in Rust.

Detailed Explanation

A rough equivalence to being able to provide functions for certain nodes, while not worrying about other nodes or traversal.

Drawbacks, Rationale, and Alternatives

Rolling our own AST visitor.

Unresolved Questions

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions