-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler: make a pass and fail for #29
[skip ci]
- Loading branch information
Zilin Chen
authored and
Zilin Chen
committed
Jan 10, 2018
1 parent
200bb0d
commit 44c404f
Showing
2 changed files
with
13 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
type WordArray a | ||
|
||
wordarray_length: all(a :< DSE). (WordArray a)! -> U32 | ||
|
||
type Buffer = { | ||
data : WordArray U8 | ||
, bound : U32 | ||
} | ||
|
||
buf_length: Buffer! -> U32 | ||
buf_length buf = wordarray_length (buf.data) |
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