summaryrefslogtreecommitdiff
path: root/language/l2.lem
diff options
context:
space:
mode:
authorKathy Gray2014-07-29 15:35:21 +0100
committerKathy Gray2014-07-29 15:35:21 +0100
commit7c0435413b58eb82a22602d4a3b65f45323dc03b (patch)
tree0566b87355a5bdfae070b607fee13af66ebf5c03 /language/l2.lem
parent86f74211ca777ceaed0a58196efc05a2bb185642 (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.lem')
-rw-r--r--language/l2.lem1
1 files changed, 1 insertions, 0 deletions
diff --git a/language/l2.lem b/language/l2.lem
index a9bba453..27af418a 100644
--- a/language/l2.lem
+++ b/language/l2.lem
@@ -403,6 +403,7 @@ type type_def_aux 'a = (* Type definition body *)
type default_spec_aux 'a = (* Default kinding or typing assumption *)
| DT_kind of base_kind * kid
+ | DT_order of order
| DT_typ of typschm * id