Commit aaa50241ac140b5441e8cfb34bd4e884a4828af7

Authored by totoro
1 parent e7fa05a2

add option to not generate Muscle message of the described type

Showing 1 changed file with 18 additions and 3 deletions   Show diff stats
types/ds_types.anubis
... ... @@ -105,12 +105,27 @@ public define DS_Alternative
105 105 alternative(alt_name, no_comment, components)
106 106 .
107 107  
  108 +public type DS_Type_Generation:
  109 + no_message,
  110 + message.
  111 +
108 112 public type DS_Type:
109   - ds_type(
  113 + ds_type
  114 + (
110 115 String type_name,
  116 + DS_Type_Generation type_generation,
111 117 List(DS_Alternative) ds_alts
112 118 ).
113 119  
  120 +public define DS_Type
  121 + ds_type
  122 + (
  123 + String type_name,
  124 + List(DS_Alternative) ds_alts
  125 + )=
  126 + ds_type(type_name, message, ds_alts)
  127 +.
  128 +
114 129 public type Extern_type:
115 130 extern(String type_name, String ext_read)
116 131 .
... ... @@ -161,7 +176,7 @@ public define List(Extern_type)
161 176 (
162 177 DS_Type ds_type
163 178 )=
164   - since ds_type is ds_type(_, ds_alternatives),
  179 + since ds_type is ds_type(_, _, ds_alternatives),
165 180 extract_extern_type(ds_alternatives, [])
166 181 .
167 182  
... ... @@ -364,7 +379,7 @@ public define String
364 379 (
365 380 DS_Type _ds_type
366 381 )=
367   - since _ds_type is ds_type(type_name, ds_alts),
  382 + since _ds_type is ds_type(type_name, _, ds_alts),
368 383 with type_length = alternative_type_max_length(ds_alts,0)+2,
369 384 alt_name_length = alternative_name_max_length(ds_alts, 0),
370 385 type_name_length = alternative_type_name_max_length(ds_alts,0),
... ...