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 emission for print and panic #79

Closed
mark-koch opened this issue Aug 20, 2024 · 0 comments · Fixed by #78
Closed

Implement emission for print and panic #79

mark-koch opened this issue Aug 20, 2024 · 0 comments · Fixed by #78
Assignees

Comments

@mark-koch
Copy link
Contributor

No description provided.

@mark-koch mark-koch self-assigned this Aug 20, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 20, 2024
Closes #79.

Adds lowering logic for:
* String type and `ConstString` (c-style)
* Error type and `ConstError`
* Print op (lowers to libc `printf` by default)
* Panic op (lowers to libc `abort` by default)

BREAKING CHANGE: `CodegenExtension::emitter` has a new lifetime bound on
the `self` argument. `PreludeCodegen` trait now requires `Clone`.
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 a pull request may close this issue.

1 participant