summaryrefslogtreecommitdiff
path: root/language/l2_parse.ott
diff options
context:
space:
mode:
authorKathy Gray2014-07-08 15:07:45 +0100
committerKathy Gray2014-07-08 15:07:45 +0100
commite482abd733622647f97b4ebecc6cefeb6b1fccee (patch)
treec4d1fbb605fb28a7f23522d4435423328c45328a /language/l2_parse.ott
parent54bfa59acb4244e29bc9064f09fc800e252fea39 (diff)
Extend language to support register aliases and to support interrupts, traps and the like.
Diffstat (limited to 'language/l2_parse.ott')
-rw-r--r--language/l2_parse.ott5
1 files changed, 5 insertions, 0 deletions
diff --git a/language/l2_parse.ott b/language/l2_parse.ott
index a655959d..9785290f 100644
--- a/language/l2_parse.ott
+++ b/language/l2_parse.ott
@@ -521,6 +521,8 @@ exp :: 'E_' ::=
| exp := exp' :: :: assign
{{ com imperative assignment }}
+ | exit exp :: :: exit
+
| ( exp ) :: S :: paren {{ ichlo [[exp]] }}
@@ -723,6 +725,9 @@ dec_spec :: 'DEC_' ::=
{{ com Register declarations }}
{{ aux _ l }}
| register atyp id :: :: reg
+ | register alias id = exp :: :: alias
+ | register alias atyp id = exp :: :: typ_alias
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Top-level definitions %