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

BST: a bytecode-like AST #1356

Merged
merged 4 commits into from
Sep 6, 2016
Merged

BST: a bytecode-like AST #1356

merged 4 commits into from
Sep 6, 2016

Conversation

kmod
Copy link
Collaborator

@kmod kmod commented Sep 6, 2016

We currently use our AST data structures for representing both the AST from the parsed file, and also the bytecode-like semantics we add during the CFG phase. This PR splits those apart, so now we have an AST just for the syntax, and a BST that is dedicated to the bytecode level.

The main changes (beyond all the other PRs that led up to this) was in the CFG phase. It has to be more explicit now about whether it is operating on pre-CFG or post-CFG data structures. I also had to do some more refactoring to get it all to work together.

This opens up a lot of optimizations, which I haven't started to implement yet. There are a lot of fields on the BST classes that aren't used, lots of AST classes that are no longer used, etc.

kmod added 4 commits September 6, 2016 00:41
And remove some extraneous things from bst
And make BST_arguments a bit safer by removing misleading fields.
@kmod kmod merged commit 48eb8f3 into pyston:ast Sep 6, 2016
@kmod kmod deleted the bst branch January 17, 2017 21:21
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

Successfully merging this pull request may close these issues.

1 participant