-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1043 from andrew-johnson-4/phi-3
Phi 3
- Loading branch information
Showing
26 changed files
with
24,074 additions
and
22,565 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 +1,11 @@ | ||
Error: | ||
Error: Function Application Yielded No Matches | ||
phi | ||
With Arguments Cons<FileState::Closed,FileState::Open> | ||
At EXAMPLES/phi-types.lsts line 4 column 1 | ||
With Candidates: | ||
Arrow<Cons<FileState::Closed,FileState::Closed>,FileState::Closed>+ | ||
Blob+ | ||
GlobalVariable+ | ||
Arrow<Cons<FileState::Open,FileState::Open>,FileState::Open>+ | ||
Blob+ | ||
GlobalVariable |
Empty file.
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,3 @@ | ||
|
||
fragment type Bool; size Bool 1; | ||
|
||
true := 1_u8; | ||
false := 0_u8; | ||
|
||
(declare-unop( into-branch-conditional Bool BranchConditional ( x ) )); | ||
true := 1_u64; | ||
false := 0_u64; |
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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
|
||
apply-or-cons-and-specialize := λ(: function-name String)(: ft Type)(: pt Type)(: blame AST). (: ( | ||
(let r (Tuple( TAny TAny ))) | ||
(let r (ApplyResult( TAny TAny (: LEOF List<Tuple<String,Type>>) ))) | ||
(if (is-arrow ft) ( | ||
(set r (apply-blame( function-name ft pt 1_u64 blame ))) | ||
) ( | ||
(if (&&( (non-zero ft) (non-zero pt) )) ( | ||
(set r (Tuple( | ||
(set r (ApplyResult( | ||
ft | ||
(t3( 'Cons_s ft pt )) | ||
(: LEOF List<Tuple<String,Type>>) | ||
))) | ||
) ()) | ||
)) | ||
r | ||
) Tuple<Type,Type>); | ||
) ApplyResult); | ||
|
||
apply-cons := λ(: function-name String)(: ft Type)(: pt Type)(: blame AST). (: ( | ||
(let r (Tuple( TAny TAny ))) | ||
(let r (ApplyResult( TAny TAny (: LEOF List<Tuple<String,Type>>) ))) | ||
(if (&&( (non-zero ft) (non-zero pt) )) ( | ||
(set r (Tuple( | ||
(set r (ApplyResult( | ||
ft | ||
(t3( 'Cons_s ft pt )) | ||
(: LEOF List<Tuple<String,Type>>) | ||
))) | ||
) ()) | ||
r | ||
) Tuple<Type,Type>); | ||
) ApplyResult); |
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
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.