diff options
| author | Kathy Gray | 2014-07-29 15:35:21 +0100 |
|---|---|---|
| committer | Kathy Gray | 2014-07-29 15:35:21 +0100 |
| commit | 7c0435413b58eb82a22602d4a3b65f45323dc03b (patch) | |
| tree | 0566b87355a5bdfae070b607fee13af66ebf5c03 /language/l2.ml | |
| parent | 86f74211ca777ceaed0a58196efc05a2bb185642 (diff) | |
A file can now declare that a default order is either inc or dec, and this will be reflected in short hand type syntax, inc is still the default if undeclared
So:
default order dec
register bit[32] t (* Declares t as a decreasing vector, starting at 31 on the left and decreasing to 0 *)
default order inc
register bit[32] o (* Declares o as an increasing vector, starting at 0 on the left and increasing to 31 *)
It is presently possible to change the default mid-file; this is almost certainly bad and I will turn it into an error soon.
Diffstat (limited to 'language/l2.ml')
| -rw-r--r-- | language/l2.ml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/language/l2.ml b/language/l2.ml index a00e2f84..ac7305a4 100644 --- a/language/l2.ml +++ b/language/l2.ml @@ -427,6 +427,7 @@ type type 'a default_spec_aux = (* Default kinding or typing assumption *) DT_kind of base_kind * kid + | DT_order of order | DT_typ of typschm * id |
