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

Add a "nano pass" to the compiler to perform statements lifting #288

Open
cgrand opened this issue Nov 17, 2023 · 0 comments
Open

Add a "nano pass" to the compiler to perform statements lifting #288

cgrand opened this issue Nov 17, 2023 · 0 comments

Comments

@cgrand
Copy link
Contributor

cgrand commented Nov 17, 2023

Lifting statements out of expressions is a concern through all the compiler emit-* functions.

I propose we extract that concern into a distinct pass.

Currently we have

text -(reader)-> clj forms -(emit)-> dart-sexp -(write)-> dart text

where dart-sexp is our internal representation of the subset of dart we target.

With this proposal we would have

text -(reader)-> clj forms -(emit)-> dart-sexp -(lift)-> dart-sexp -(write)-> dart text

After lift the dart sexp representation would be guaranteed to be properly lifted and thus writeable.

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

No branches or pull requests

1 participant