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 main #4

Closed
bencochran opened this issue Nov 19, 2015 · 0 comments
Closed

Add a main #4

bencochran opened this issue Nov 19, 2015 · 0 comments

Comments

@bencochran
Copy link
Owner

Right now, we have no way to generate a value main definition.

I think I want to solve this by requiring a def main() with zero parameters. Then during codegen we can special-case main and generate it to return an int (maybe casting the function body’s result?). That way we can actually execute the resulting code.

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