-
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.
Todo, Readme and one extra test file
- Loading branch information
Showing
6 changed files
with
52 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
Fix pretty printing of types | ||
Add pretty printing of terms | ||
Add syntax and parsing for lifting and handling of effects | ||
Finish constraint generation and let polymorphism | ||
Add subsumption on types (simple one) | ||
Implement interpreter | ||
Define built in effects | ||
Add polymorphim of types, not only effects | ||
CLEAN UP |
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,5 +1,20 @@ | ||
def id: forall 'a. () -> 'a () = fun 'a. fun x: (). x | ||
eff RD = | ||
ask : Unit -> Int; | ||
|
||
def f: forall 'a. Int -> 'a Int = fun 'a. fun x: Int. x | ||
let h = fn comp -> fn r -> | ||
(handle RD in comp () with | ||
ask u, k -> k r; | ||
return x -> x;) | ||
|
||
run let u1 = id in 42 | ||
let x = h (fn u -> | ||
a <- ask (), | ||
a) 7 | ||
|
||
let y = h (fn u -> | ||
a <- h (fn u -> lift RD in (ask ())) 5, | ||
b <- ask (), | ||
a) 6 | ||
|
||
let z = fn u -> lift RD in (ask ()) | ||
|
||
let v = h (fn u -> lift RD in (ask ())) |