-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use syntax
T
and F
for true and false Booleans
Closes #373.
- Loading branch information
Showing
43 changed files
with
205 additions
and
199 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 |
---|---|---|
|
@@ -17,10 +17,10 @@ | |
1 | ||
10 | ||
45 | ||
true | ||
true | ||
T | ||
T | ||
12600 | ||
true | ||
T | ||
2520 | ||
0 | ||
3628800 | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
3 | ||
3 | ||
true | ||
true | ||
true | ||
true | ||
true | ||
false | ||
false | ||
false | ||
true | ||
true | ||
T | ||
T | ||
T | ||
T | ||
T | ||
F | ||
F | ||
F | ||
T | ||
T |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{1, 2}, {1, 3}, {2, 3}} | ||
true | ||
T | ||
{⟅1 # 3⟆, ⟅2 # 5⟆} | ||
true | ||
T |
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 |
---|---|---|
|
@@ -8,8 +8,8 @@ reduce : (a × a → a) × a × List(a) → a | |
reduce(~+~, 0, [1 .. 10]) : ℕ | ||
55 | ||
60 | ||
true | ||
T | ||
2351 | ||
6 | ||
7 | ||
true | ||
T |
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 |
---|---|---|
@@ -1 +1 @@ | ||
type T(a,b) = Unit + a*b | ||
type X(a,b) = Unit + a*b |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
:load test/error-tyargs/error-tyargs.disco | ||
x : T | ||
y : T(Int) | ||
z : T(Int,Char) | ||
w : T(Int,Char,Bool) | ||
x : X | ||
y : X(Int) | ||
z : X(Int,Char) | ||
w : X(Int,Char,Bool) | ||
q : List | ||
p : List(Int,Char) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Loading unboundtyvar.disco... | ||
While checking unboundtyvar.T: | ||
While checking unboundtyvar.Ty: | ||
Error: Unknown type variable 'b'. | ||
https://disco-lang.readthedocs.io/en/latest/reference/unbound-tyvar.html |
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 |
---|---|---|
@@ -1 +1 @@ | ||
type T(a) = a + b | ||
type Ty(a) = a + b |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
true | ||
true | ||
true | ||
true | ||
T | ||
T | ||
T | ||
T |
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 |
---|---|---|
@@ -1,32 +1,34 @@ | ||
true | ||
false | ||
true | ||
false | ||
true | ||
false | ||
false | ||
false | ||
false | ||
false | ||
true | ||
true | ||
true | ||
false | ||
true | ||
true | ||
false | ||
true | ||
true | ||
false | ||
true | ||
true | ||
true | ||
false | ||
true | ||
true | ||
true | ||
false | ||
false | ||
true | ||
false | ||
false | ||
T | ||
F | ||
T | ||
F | ||
T | ||
F | ||
T | ||
F | ||
F | ||
F | ||
F | ||
F | ||
T | ||
T | ||
T | ||
F | ||
T | ||
T | ||
F | ||
T | ||
T | ||
F | ||
T | ||
T | ||
T | ||
F | ||
T | ||
T | ||
T | ||
F | ||
F | ||
T | ||
F | ||
F |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ true | |
false | ||
True | ||
False | ||
T | ||
F | ||
true and true | ||
true and false | ||
false and true | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
true | ||
true | ||
true | ||
true | ||
T | ||
T | ||
T | ||
T |
Oops, something went wrong.