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

chapter 7 python ed - mismatch between description and Lfun interpreter #103

Open
proglang opened this issue Dec 9, 2021 · 1 comment
Open

Comments

@proglang
Copy link
Contributor

proglang commented Dec 9, 2021

The concrete syntax for Lfun says
def ... stmt ...
The ast says the same and it is explained like this in the text.
However, the interpreter assumes that there are only definitions and invokes the main function.

@jsiek
Copy link
Collaborator

jsiek commented Dec 9, 2021

Ahh, that's because the interpreter only gets run after the shrink pass. But we should also be able to interpreter the source Lfun language. So yeah, the interpreter needs fixing.

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

2 participants