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

Split ast-to-sst code out of func_to_air and into ast_to_sst_func #1211

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

Chris-Hawblitzel
Copy link
Collaborator

This just moves some code around so that the AST-to-SST code is in a separate file (ast_to_sst_func.rs) from the SST-to-AIR code in func_to_air.rs. I think this makes func_to_air.rs easier to understand, since it now operates just on vir::sst::Exp and air::ast::Expr, without involving vir::ast::Expr.

I'm thinking of this as an initial step towards a simpler, more cohesive AST-to-SST translation, but I'd like to merge this initial step first so that the later steps are clearer and easier to review.

@Chris-Hawblitzel
Copy link
Collaborator Author

I'd also like to rename func_to_air.rs to sst_to_air_func.rs, but that can be done separately.

@Chris-Hawblitzel Chris-Hawblitzel merged commit 7a015e0 into main Jul 8, 2024
9 checks passed
@Chris-Hawblitzel Chris-Hawblitzel deleted the ast_to_sst_func branch July 8, 2024 17:14
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.

None yet

3 participants