forked from au-ts/cogent
-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
0f6ff35
commit a4e40a4
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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,24 @@ | ||
type ExState | ||
type VfsInode | ||
type OSBuffer | ||
|
||
type LRR acc brk = (acc, <Iterate|Break brk>) | ||
|
||
seq32: all (acc,obsv,rbrk). Seq32Param acc obsv rbrk -> LRR acc rbrk | ||
type Seq32Param acc obsv rbrk = #{ | ||
f: Seq32_body acc obsv rbrk, | ||
acc: acc, | ||
obsv: obsv! | ||
} | ||
type Seq32_body acc obsv rbrk = #{acc:acc, obsv:obsv!} -> LRR acc rbrk | ||
|
||
bar: Seq32_body OSBuffer () () | ||
|
||
foo : (OSBuffer, VfsInode) -> (OSBuffer, VfsInode) | ||
foo (buf, inode) = | ||
let (buf, _) = seq32 #{ | ||
f = bar, | ||
acc = buf, | ||
obsv = () } | ||
in (buf, inode) | ||
|