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

Is it possible to create a three address code IR from tree.rootNode? #139

Open
genderev opened this issue Nov 29, 2021 · 0 comments
Open

Comments

@genderev
Copy link

genderev commented Nov 29, 2021

I've been attempting to use tree-sitter-python as the parser for a Python interpreter but I'm not sure whether I am attempting something that is impossible.

Is there a recommended way to incrementally go through each node of the parse tree?
I'm also very confused about how queries work. I want to be able to write a query that says - somehow - return the right and left hand sides of an expression_statement or call, but I'm not sure how.

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