forked from egraphs-good/egglog
-
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.
Fix support for nullary unstable functions
This resolves egraphs-good#382 by adding parsing support for defining sorts of 0 argument unstable functions. It does this by handling that input `()` as the `Unit` constructor. If we ever want to remove the Unit constructor, we could move the return type to the list of argument types, to make sure it always has at least one value. This would also make parsing it more similar to other datatypes. For now I just kept it the same to make the change minimal.
- Loading branch information
1 parent
fb4a9f1
commit 0c0c6ae
Showing
2 changed files
with
32 additions
and
20 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