-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
58 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
deftype Trivial 0 end | ||
defnode sole -- value!: Trivial end | ||
|
||
show sole sole connect end |
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,15 @@ | ||
{ | ||
left: { t: { kind: 'TypeTerm', name: 'Trivial', args: [] }, sign: 1 }, | ||
right: { t: { kind: 'TypeTerm', name: 'Trivial', args: [] }, sign: 1 } | ||
} | ||
Error: [matchSignedTypes] I expect the sign to be opposite | ||
at unifySignedTypes (/home/xyh/cicada-lang/inet/lib/lang/unify/unifySignedTypes.js:29:11) | ||
at Object.cut (/home/xyh/cicada-lang/inet/lib/lang/builtins/connect.js:15:45) | ||
at cutDefinition (/home/xyh/cicada-lang/inet/lib/lang/cut/cutDefinition.js:17:24) | ||
at cut (/home/xyh/cicada-lang/inet/lib/lang/cut/cut.js:19:51) | ||
at cutWords (/home/xyh/cicada-lang/inet/lib/lang/cut/cutWords.js:7:23) | ||
at Show.<anonymous> (/home/xyh/cicada-lang/inet/lib/lang/stmts/Show.js:26:37) | ||
at Generator.next (<anonymous>) | ||
at /home/xyh/cicada-lang/inet/lib/lang/stmts/Show.js:8:71 | ||
at new Promise (<anonymous>) | ||
at __awaiter (/home/xyh/cicada-lang/inet/lib/lang/stmts/Show.js:4:12) |
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,8 @@ | ||
deftype Nat 0 end | ||
defnode zero -- value!: Nat end | ||
defnode add1 prev: Nat -- value!: Nat end | ||
|
||
deftype Trivial 0 end | ||
defnode sole -- value!: Trivial end | ||
|
||
show sole add1 end |
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,15 @@ | ||
{ | ||
left: { kind: 'TypeTerm', name: 'Trivial', args: [] }, | ||
right: { kind: 'TypeTerm', name: 'Nat', args: [] } | ||
} | ||
Error: [unifyTypes] I fail to unify types | ||
at unifyTypes (/home/xyh/cicada-lang/inet/lib/lang/unify/unifyTypes.js:31:11) | ||
at unifySignedTypes (/home/xyh/cicada-lang/inet/lib/lang/unify/unifySignedTypes.js:11:37) | ||
at cutNodeDefinition (/home/xyh/cicada-lang/inet/lib/lang/cut/cutNodeDefinition.js:13:49) | ||
at cutDefinition (/home/xyh/cicada-lang/inet/lib/lang/cut/cutDefinition.js:9:55) | ||
at cut (/home/xyh/cicada-lang/inet/lib/lang/cut/cut.js:19:51) | ||
at cutWords (/home/xyh/cicada-lang/inet/lib/lang/cut/cutWords.js:7:23) | ||
at Show.<anonymous> (/home/xyh/cicada-lang/inet/lib/lang/stmts/Show.js:26:37) | ||
at Generator.next (<anonymous>) | ||
at /home/xyh/cicada-lang/inet/lib/lang/stmts/Show.js:8:71 | ||
at new Promise (<anonymous>) |
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