@@ -86,11 +86,11 @@ class Standard(PredefinedPackage):
8686 def __init__ (self ) -> None :
8787 super ().__init__ ()
8888
89- boolean = EnumeratedType ("boolean" , (EnumerationLiteral ("false" ), EnumerationLiteral ("true" )))
89+ boolean = EnumeratedType ("boolean" , (EnumerationLiteral ("false" ), EnumerationLiteral ("true" )), None )
9090 self ._types [boolean ._normalizedIdentifier ] = boolean
9191 self ._declaredItems .append (boolean )
9292
93- bit = EnumeratedType ("bit" , (EnumerationLiteral ("'0'" ), EnumerationLiteral ("'1'" )))
93+ bit = EnumeratedType ("bit" , (EnumerationLiteral ("'0'" ), EnumerationLiteral ("'1'" )), None )
9494 self ._types [bit ._normalizedIdentifier ] = bit
9595 self ._declaredItems .append (bit )
9696
@@ -108,83 +108,78 @@ def __init__(self) -> None:
108108 "'È'" , "'É'" , "'Ê'" , "'Ë'" , "'Ì'" , "'Í'" , "'Î'" , "'Ï'" , "'Ð'" , "'Ñ'" , "'Ò'" , "'Ó'" , "'Ô'" , "'Õ'" , "'Ö'" , "'×'" , "'Ø'" , "'Ù'" , "'Ú'" , "'Û'" ,\
109109 "'Ü'" , "'Ý'" , "'Þ'" , "'ß'" , "'à'" , "'á'" , "'â'" , "'ã'" , "'ä'" , "'å'" , "'æ'" , "'ç'" , "'è'" , "'é'" , "'ê'" , "'ë'" , "'ì'" , "'í'" , "'î'" , "'ï'" ,\
110110 "'ð'" , "'ñ'" , "'ò'" , "'ó'" , "'ô'" , "'õ'" , "'ö'" , "'÷'" , "'ø'" , "'ù'" , "'ú'" , "'û'" , "'ü'" , "'ý'" , "'þ'" , "'ÿ'"
111- character = EnumeratedType ("character" , [EnumerationLiteral (char ) for char in chars ])
111+ character = EnumeratedType ("character" , [EnumerationLiteral (char ) for char in chars ], None )
112112 self ._types [character ._normalizedIdentifier ] = character
113113 self ._declaredItems .append (character )
114114
115115 levels = "note" , "warning" , "error" , "failure"
116- severityLevel = EnumeratedType ("severityLevel" , [EnumerationLiteral (level ) for level in levels ])
116+ severityLevel = EnumeratedType ("severityLevel" , [EnumerationLiteral (level ) for level in levels ], None )
117117 self ._types [severityLevel ._normalizedIdentifier ] = severityLevel
118118 self ._declaredItems .append (severityLevel )
119119
120- integer = IntegerType ("integer" , Range (IntegerLiteral (- 2 ** 31 ), IntegerLiteral (2 ** 31 - 1 ), Direction .To ))
120+ integer = IntegerType ("integer" , Range (IntegerLiteral (- 2 ** 31 ), IntegerLiteral (2 ** 31 - 1 ), Direction .To ), None )
121121 self ._types [integer ._normalizedIdentifier ] = integer
122122 self ._declaredItems .append (integer )
123123
124124 # real
125125
126- time = PhysicalType (
127- "time" ,
128- Range (IntegerLiteral (- 2 ** 63 ), IntegerLiteral (2 ** 63 - 1 ), Direction .To ),
129- primaryUnit = "fs" ,
130- units = (
131- ("ps" , PhysicalIntegerLiteral (1000 , "fs" )),
132- ("ns" , PhysicalIntegerLiteral (1000 , "ps" )),
133- ("us" , PhysicalIntegerLiteral (1000 , "ns" )),
134- ("ms" , PhysicalIntegerLiteral (1000 , "us" )),
135- ("sec" , PhysicalIntegerLiteral (1000 , "ms" )),
136- ("min" , PhysicalIntegerLiteral (60 , "sec" )),
137- ("hr" , PhysicalIntegerLiteral (60 , "min" )),
138- )
139- )
126+ time = PhysicalType ("time" , Range (IntegerLiteral (- 2 ** 63 ), IntegerLiteral (2 ** 63 - 1 ), Direction .To ), primaryUnit = "fs" , units = (
127+ ("ps" , PhysicalIntegerLiteral (1000 , "fs" )),
128+ ("ns" , PhysicalIntegerLiteral (1000 , "ps" )),
129+ ("us" , PhysicalIntegerLiteral (1000 , "ns" )),
130+ ("ms" , PhysicalIntegerLiteral (1000 , "us" )),
131+ ("sec" , PhysicalIntegerLiteral (1000 , "ms" )),
132+ ("min" , PhysicalIntegerLiteral (60 , "sec" )),
133+ ("hr" , PhysicalIntegerLiteral (60 , "min" )),
134+ ), parent = None )
140135 self ._types [time ._normalizedIdentifier ] = time
141136 self ._declaredItems .append (time )
142137
143138 # delay_length
144139
145140 # now
146141
147- natural = Subtype ("natural" , SimpleSubtypeSymbol (SimpleName ("integer" )))
142+ natural = Subtype ("natural" , SimpleSubtypeSymbol (SimpleName ("integer" )), None )
148143 natural ._baseType = integer
149- natural ._range = Range (IntegerLiteral (0 ), IntegerLiteral (2 ** 31 - 1 ), Direction .To )
144+ natural ._range = Range (IntegerLiteral (0 ), IntegerLiteral (2 ** 31 - 1 ), Direction .To )
150145 self ._subtypes [natural ._normalizedIdentifier ] = natural
151146 self ._declaredItems .append (natural )
152147
153- positive = Subtype ("positive" , SimpleSubtypeSymbol (SimpleName ("integer" )))
148+ positive = Subtype ("positive" , SimpleSubtypeSymbol (SimpleName ("integer" )), None )
154149 positive ._baseType = integer
155- positive ._range = Range (IntegerLiteral (1 ), IntegerLiteral (2 ** 31 - 1 ), Direction .To )
150+ positive ._range = Range (IntegerLiteral (1 ), IntegerLiteral (2 ** 31 - 1 ), Direction .To )
156151 self ._subtypes [positive ._normalizedIdentifier ] = positive
157152 self ._declaredItems .append (positive )
158153
159- string = ArrayType ("string" , (SimpleSubtypeSymbol (SimpleName ("positive" )), ), SimpleSubtypeSymbol (SimpleName ("character" )))
154+ string = ArrayType ("string" , (SimpleSubtypeSymbol (SimpleName ("positive" )),), SimpleSubtypeSymbol (SimpleName ("character" )), None )
160155 self ._types [string ._normalizedIdentifier ] = string
161156 self ._declaredItems .append (string )
162157
163- booleanVector = ArrayType ("boolean_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )), ), SimpleSubtypeSymbol (SimpleName ("boolean" )))
158+ booleanVector = ArrayType ("boolean_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )),), SimpleSubtypeSymbol (SimpleName ("boolean" )), None )
164159 self ._types [booleanVector ._normalizedIdentifier ] = booleanVector
165160 self ._declaredItems .append (booleanVector )
166161
167- bitVector = ArrayType ("bit_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )), ), SimpleSubtypeSymbol (SimpleName ("bit" )))
162+ bitVector = ArrayType ("bit_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )),), SimpleSubtypeSymbol (SimpleName ("bit" )), None )
168163 self ._types [bitVector ._normalizedIdentifier ] = bitVector
169164 self ._declaredItems .append (bitVector )
170165
171- integerVector = ArrayType ("integer_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )), ), SimpleSubtypeSymbol (SimpleName ("integer" )))
166+ integerVector = ArrayType ("integer_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )),), SimpleSubtypeSymbol (SimpleName ("integer" )), None )
172167 self ._types [integerVector ._normalizedIdentifier ] = integerVector
173168 self ._declaredItems .append (integerVector )
174169
175170 # real_vector
176171
177- timeVector = ArrayType ("time_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )), ), SimpleSubtypeSymbol (SimpleName ("time" )))
172+ timeVector = ArrayType ("time_vector" , (SimpleSubtypeSymbol (SimpleName ("natural" )),), SimpleSubtypeSymbol (SimpleName ("time" )), None )
178173 self ._types [timeVector ._normalizedIdentifier ] = timeVector
179174 self ._declaredItems .append (timeVector )
180175
181176 fileOpenKinds = "read_mode" , "write_mode" , "append_mode"
182- openFileKind = EnumeratedType ("open_file_kind" , [EnumerationLiteral (kind ) for kind in fileOpenKinds ])
177+ openFileKind = EnumeratedType ("open_file_kind" , [EnumerationLiteral (kind ) for kind in fileOpenKinds ], None )
183178 self ._types [openFileKind ._normalizedIdentifier ] = openFileKind
184179 self ._declaredItems .append (openFileKind )
185180
186181 fileOpenStati = "open_ok" , "status_error" , "name_error" , "mode_error"
187- fileOpenStatus = EnumeratedType ("open_file_status" , [EnumerationLiteral (status ) for status in fileOpenStati ])
182+ fileOpenStatus = EnumeratedType ("open_file_status" , [EnumerationLiteral (status ) for status in fileOpenStati ], None )
188183 self ._types [fileOpenStatus ._normalizedIdentifier ] = fileOpenStatus
189184 self ._declaredItems .append (fileOpenStatus )
190185
0 commit comments