Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create query interface for Syntax Tree/IR #5

Open
brianv0 opened this issue Feb 12, 2017 · 0 comments
Open

Create query interface for Syntax Tree/IR #5

brianv0 opened this issue Feb 12, 2017 · 0 comments

Comments

@brianv0
Copy link
Member

brianv0 commented Feb 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant