Skip to content

Create query interface for Syntax Tree/IR #5

Description

@brianv0

The Redbaron project has an Syntax Tree query interface:

https://redbaron.readthedocs.io/en/latest/querying.html

Which is partially implemented as such:
https://github.com/PyCQA/redbaron/blob/master/redbaron/base_nodes.py#L804

Conceivably, we should be able to use the Visitor pattern to implement this.

Where this will really potentially shine is basic pattern matching where writing a new visitor is a bit more work than it's worth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions