-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaced annotations by keyword parameters in Box implementation
- Loading branch information
1 parent
cb707e2
commit 469c4ca
Showing
2 changed files
with
39 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,19 @@ | |
@contributor{Bert Lisser - [email protected] (CWI)} | ||
module lang::box::util::Box | ||
|
||
|
||
data Box | ||
= H (list[Box] h) | ||
| V(list[Box] v) | ||
| HOV (list[Box] hov) | ||
| HV (list[Box] hv) | ||
| I(list[Box] i) | ||
| WD(list[Box] wd) | ||
data Box(int hs=-1, int vs=-1, int is=-1, int ts=-1, int width=-1, int height=-1) | ||
= H (list[Box] h) | ||
| V(list[Box] v) | ||
| HOV (list[Box] hov) | ||
| HV (list[Box] hv) | ||
| I(list[Box] i) | ||
| WD(list[Box] wd) | ||
| R(list[Box] r) | ||
| A(list[Box] a) | ||
| A(list[Box] a) | ||
| SPACE(int space) | ||
| L(str l) | ||
| KW(Box kw) | ||
| VAR(Box var) | ||
| L(str l) | ||
| KW(Box kw) | ||
| VAR(Box var) | ||
| NM(Box nm) | ||
| STRING(Box string) | ||
| COMM(Box comm) | ||
|
@@ -34,10 +33,5 @@ data Box | |
|
||
alias text = list[str]; | ||
|
||
anno int Box@hs; | ||
anno int Box@vs; | ||
anno int Box@is; | ||
anno int Box@ts; | ||
anno int Box@width; | ||
anno int Box@height; | ||
|
||
|
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