-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to raise error values instead of yielding them.
This code previously contained a weird/brittle pattern of functions that use `yield` before every possible `error!`, in order to convey an error code with each error, as a workaround for the fact that Savi didn't yet support error values. Now that [the latest version of Savi] _does_ support error values, we can use them here. Note that there is a separate issue uncovered here for the Savi compiler showing "<unsatisfiable>" errors when every branch of a choice-inside-a-choice block jumps away. For now this code does a workaround of adding a fake unreachable branch that doesn't jump away, for each place this is a problem.
- Loading branch information
Showing
6 changed files
with
221 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.