-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support recursive datatypes in egglog (#432)
* datatype* * Fix build due to bad merge * fix datatype sexp * use Subdatatypes than Result * fix * Update src/ast/desugar.rs Co-authored-by: Saul Shanabrook <s.shanabrook@gmail.com> --------- Co-authored-by: Saul Shanabrook <s.shanabrook@gmail.com>
- Loading branch information
1 parent
8bacebf
commit bb97e1e
Showing
4 changed files
with
100 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(datatype* | ||
(Math | ||
(Add Math Math) | ||
(Sum MathVec) | ||
(B Bool)) | ||
(sort MathVec (Vec Math)) | ||
(Bool | ||
(True) | ||
(False))) | ||
|
||
(let expr (Add (Sum (vec-of (B (True)) (B (False)))) (B (True)))) |