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 todo and unreachable builtins #488

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Add todo and unreachable builtins #488

merged 2 commits into from
Nov 6, 2024

Conversation

kengorab
Copy link
Owner

@kengorab kengorab commented Nov 6, 2024

Prelude: adding todo(message: String) and
unreachable(message: String) builtin functions. These functions have the noreturn decorator since they call Process.exit() after printing a specific message (along with the optional message parameter).

Compiler: Replace usages of ad-hoc todo/unreachable functions with the new builtin implementations. This requires that the ABRA_HOME environment variable be set to the current std/ dir during tests, as opposed to the std/ dir packaged with the latest published version.

Prelude: adding `todo(message: String)` and
`unreachable(message: String)` builtin functions. These functions have
the `noreturn` decorator since they call `Process.exit()` after printing
a specific message (along with the optional `message` parameter).

Compiler: Replace usages of ad-hoc todo/unreachable functions with the
new builtin implementations. This requires that the `ABRA_HOME`
environment variable be set to the _current_ `std/` dir during tests, as
opposed to the `std/` dir packaged with the latest published version.
@kengorab kengorab merged commit b352861 into master Nov 6, 2024
1 check passed
@kengorab kengorab deleted the todo-unreachable branch November 6, 2024 02:16
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 this pull request may close these issues.

1 participant