diff options
| author | Alasdair Armstrong | 2018-12-26 20:42:54 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2018-12-26 20:42:54 +0000 |
| commit | 25a8a48142cc715c55f11fc80cf3dad6bec1b71d (patch) | |
| tree | a5bd2ab3fc8a9b6893fec5dbdf06ea42428be53b /src/parse_ast.ml | |
| parent | bd6c099d7b541c7850e98347c6bfce743ca11434 (diff) | |
More cleanup
Remove unused name schemes and DEF_kind
Diffstat (limited to 'src/parse_ast.ml')
| -rw-r--r-- | src/parse_ast.ml | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/parse_ast.ml b/src/parse_ast.ml index 65b11373..00da5afb 100644 --- a/src/parse_ast.ml +++ b/src/parse_ast.ml @@ -343,13 +343,6 @@ type_union_aux = (* Type union constructors *) Tu_ty_id of atyp * id | Tu_ty_anon_rec of (atyp * id) list * id - -type -name_scm_opt_aux = (* Optional variable-naming-scheme specification for variables of defined type *) - Name_sect_none - | Name_sect_some of string - - type tannot_opt = Typ_annot_opt_aux of tannot_opt_aux * l @@ -383,12 +376,6 @@ index_range_aux = (* index specification, for bitfields in register types *) and index_range = BF_aux of index_range_aux * l - -type -name_scm_opt = - Name_sect_aux of name_scm_opt_aux * l - - type default_typing_spec_aux = (* Default kinding or typing assumption, and default order for literal vectors and vector shorthands *) DT_order of kind * atyp @@ -447,20 +434,15 @@ fundef_aux = (* Function definition *) type type_def_aux = (* Type definition body *) TD_abbrev of id * typquant * kind * atyp (* type abbreviation *) - | TD_record of id * name_scm_opt * typquant * ((atyp * id)) list * bool (* struct type definition *) - | TD_variant of id * name_scm_opt * typquant * (type_union) list * bool (* union type definition *) - | TD_enum of id * name_scm_opt * (id) list * bool (* enumeration type definition *) + | TD_record of id * typquant * ((atyp * id)) list * bool (* struct type definition *) + | TD_variant of id * typquant * (type_union) list * bool (* union type definition *) + | TD_enum of id * (id) list * bool (* enumeration type definition *) | TD_bitfield of id * atyp * (id * index_range) list (* register mutable bitfield type definition *) type val_spec_aux = (* Value type specification *) VS_val_spec of typschm * id * (string -> string option) * bool - -type -kind_def_aux = (* Definition body for elements of kind; many are shorthands for type\_defs *) - KD_nabbrev of kind * id * name_scm_opt * atyp (* type abbreviation *) - type dec_spec_aux = (* Register declarations *) DEC_reg of atyp * id @@ -474,7 +456,7 @@ scattered_def_aux = (* Function and type union definitions that can be spread a a file. Each one must end in $_$ *) SD_function of rec_opt * tannot_opt * effect_opt * id (* scattered function definition header *) | SD_funcl of funcl (* scattered function definition clause *) - | SD_variant of id * name_scm_opt * typquant (* scattered union definition header *) + | SD_variant of id * typquant (* scattered union definition header *) | SD_unioncl of id * type_union (* scattered union definition member *) | SD_mapping of id * tannot_opt | SD_mapcl of id * mapcl @@ -500,12 +482,6 @@ type val_spec = VS_aux of val_spec_aux * l - -type -kind_def = - KD_aux of kind_def_aux * l - - type dec_spec = DEC_aux of dec_spec_aux * l @@ -521,8 +497,7 @@ type fixity_token = (prec * Big_int.num * string) type def = (* Top-level definition *) - DEF_kind of kind_def (* definition of named kind identifiers *) - | DEF_type of type_def (* type definition *) + DEF_type of type_def (* type definition *) | DEF_fundef of fundef (* function definition *) | DEF_mapdef of mapdef (* mapping definition *) | DEF_val of letbind (* value definition *) |
