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

Implement let-values #33

Merged
merged 1 commit into from
Apr 8, 2023
Merged

Implement let-values #33

merged 1 commit into from
Apr 8, 2023

Conversation

pmatos
Copy link
Owner

@pmatos pmatos commented Apr 8, 2023

This is a rather large change because to implement let-values, we fixed a couple of things along the way.

  • define-values should not create a new environment. Just adds to the current one.
  • as a consequence of the previous point, we need to add an empty env at interpreter construction time.
  • implement a downcast function from expr to value as that is needed around a few places.
  • add more implementations for dumper.

Fixes #7

This is a rather large change because to implement let-values, we fixed a
couple of things along the way.

* `define-values` should not create a new environment. Just adds to the
current one.
* as a consequence of the previous point, we need to add an empty env
at interpreter construction time.
* implement a downcast function from expr to value as that is needed around a
few places.
* add more implementations for dumper.

Fixes #7
@pmatos pmatos added the enhancement New feature or request label Apr 8, 2023
@pmatos pmatos merged commit d99153f into main Apr 8, 2023
@pmatos pmatos deleted the implLetValues branch April 8, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interpret let-values
1 participant