summaryrefslogtreecommitdiff
path: root/language
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-04-18 14:14:24 +0100
committerAlasdair Armstrong2018-04-25 20:23:35 +0100
commit7511b5f693d350fa0d675f0c527d0d633a0ba560 (patch)
tree145579de13f4c8e44247eb3382e101d256ab44fc /language
parentabfbc9bed6b533d2b4d95ef14ebc0063efae5d11 (diff)
Start working on documentation
Diffstat (limited to 'language')
-rw-r--r--language/sail.ott10
1 files changed, 0 insertions, 10 deletions
diff --git a/language/sail.ott b/language/sail.ott
index ded3938b..ce05797f 100644
--- a/language/sail.ott
+++ b/language/sail.ott
@@ -413,23 +413,13 @@ type_def_aux :: 'TD_' ::=
{{ com type abbreviation }} {{ texlong }}
| typedef id name_scm_opt = const struct typquant { typ1 id1 ; ... ; typn idn semi_opt } :: :: record
{{ com struct type definition }} {{ texlong }}
-% for specifying constructor result types of nat-indexed GADTs, we can
-% let the typi be function types (as constructors are not allowed to
-% take parameters of function types)
-% concrete syntax: to be even closer to C, could have a postfix id rather than prefix id =
| typedef id name_scm_opt = const union typquant { type_union1 ; ... ; type_unionn semi_opt } :: :: variant
{{ com tagged union type definition}} {{ texlong }}
-
| typedef id name_scm_opt = enumerate { id1 ; ... ; idn semi_opt } :: :: enum
{{ com enumeration type definition}} {{ texlong }}
-
| bitfield id : typ = { id1 : index_range1 , ... , idn : index_rangen } :: :: bitfield
{{ com register mutable bitfield type definition }} {{ texlong }}
-% | typedef id = register bits [ nexp : nexp' ] { index_range1 : id1 ; ... ; index_rangen : idn }
-% :: :: register {{ com register mutable bitfield type definition }} {{ texlong }}
-
-
% the D(eprecated) forms here should be removed; they add complexity for no purpose. The nexp abbreviation form should have better syntax.
% ; many are shorthands for type\_defs
kind_def :: 'KD_' ::=