@@ -159,6 +159,12 @@ def __init__(self, text, offset, elements):
159
159
self .thereof__i18n = elements [2 ]
160
160
161
161
162
+ class TreeNode24 (TreeNode ):
163
+ def __init__ (self , text , offset , elements ):
164
+ super (TreeNode24 , self ).__init__ (text , offset , elements )
165
+ self .of_that_act__i18n = elements [2 ]
166
+
167
+
162
168
FAILURE = object ()
163
169
164
170
@@ -1089,9 +1095,12 @@ def _read_target(self):
1089
1095
address0 = self ._read_thereof ()
1090
1096
if address0 is FAILURE :
1091
1097
self ._offset = index1
1092
- address0 = self ._read_of ()
1098
+ address0 = self ._read_of_that_act ()
1093
1099
if address0 is FAILURE :
1094
1100
self ._offset = index1
1101
+ address0 = self ._read_of ()
1102
+ if address0 is FAILURE :
1103
+ self ._offset = index1
1095
1104
self ._cache ['target' ][index0 ] = (address0 , self ._offset )
1096
1105
return address0
1097
1106
@@ -1335,6 +1344,57 @@ def _read_thereof(self):
1335
1344
self ._cache ['thereof' ][index0 ] = (address0 , self ._offset )
1336
1345
return address0
1337
1346
1347
+ def _read_of_that_act (self ):
1348
+ address0 , index0 = FAILURE , self ._offset
1349
+ cached = self ._cache ['of_that_act' ].get (index0 )
1350
+ if cached :
1351
+ self ._offset = cached [1 ]
1352
+ return cached [0 ]
1353
+ index1 , elements0 = self ._offset , []
1354
+ address1 = FAILURE
1355
+ index2 = self ._offset
1356
+ address1 = self ._read_comma ()
1357
+ if address1 is FAILURE :
1358
+ address1 = TreeNode (self ._input [index2 :index2 ], index2 , [])
1359
+ self ._offset = index2
1360
+ if address1 is not FAILURE :
1361
+ elements0 .append (address1 )
1362
+ address2 = FAILURE
1363
+ index3 , elements1 , address3 = self ._offset , [], None
1364
+ while True :
1365
+ address3 = self ._read_WS ()
1366
+ if address3 is not FAILURE :
1367
+ elements1 .append (address3 )
1368
+ else :
1369
+ break
1370
+ if len (elements1 ) >= 0 :
1371
+ address2 = TreeNode (self ._input [index3 :self ._offset ], index3 , elements1 )
1372
+ self ._offset = self ._offset
1373
+ else :
1374
+ address2 = FAILURE
1375
+ if address2 is not FAILURE :
1376
+ elements0 .append (address2 )
1377
+ address4 = FAILURE
1378
+ address4 = self ._read_of_that_act__i18n ()
1379
+ if address4 is not FAILURE :
1380
+ elements0 .append (address4 )
1381
+ else :
1382
+ elements0 = None
1383
+ self ._offset = index1
1384
+ else :
1385
+ elements0 = None
1386
+ self ._offset = index1
1387
+ else :
1388
+ elements0 = None
1389
+ self ._offset = index1
1390
+ if elements0 is None :
1391
+ address0 = FAILURE
1392
+ else :
1393
+ address0 = self ._actions .thereof (self ._input , index1 , self ._offset , elements0 )
1394
+ self ._offset = self ._offset
1395
+ self ._cache ['of_that_act' ][index0 ] = (address0 , self ._offset )
1396
+ return address0
1397
+
1338
1398
def _read_tail (self ):
1339
1399
address0 , index0 = FAILURE , self ._offset
1340
1400
cached = self ._cache ['tail' ].get (index0 )
@@ -1431,6 +1491,28 @@ def _read_of_the_act__i18n(self):
1431
1491
self ._cache ['of_the_act__i18n' ][index0 ] = (address0 , self ._offset )
1432
1492
return address0
1433
1493
1494
+ def _read_of_that_act__i18n (self ):
1495
+ address0 , index0 = FAILURE , self ._offset
1496
+ cached = self ._cache ['of_that_act__i18n' ].get (index0 )
1497
+ if cached :
1498
+ self ._offset = cached [1 ]
1499
+ return cached [0 ]
1500
+ chunk0 , max0 = None , self ._offset + 0
1501
+ if max0 <= self ._input_size :
1502
+ chunk0 = self ._input [self ._offset :max0 ]
1503
+ if chunk0 == '' :
1504
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 0 ], self ._offset , [])
1505
+ self ._offset = self ._offset + 0
1506
+ else :
1507
+ address0 = FAILURE
1508
+ if self ._offset > self ._failure :
1509
+ self ._failure = self ._offset
1510
+ self ._expected = []
1511
+ if self ._offset == self ._failure :
1512
+ self ._expected .append (('ProvisionRefs::of_that_act__i18n' , '""' ))
1513
+ self ._cache ['of_that_act__i18n' ][index0 ] = (address0 , self ._offset )
1514
+ return address0
1515
+
1434
1516
def _read_of_this__i18n (self ):
1435
1517
address0 , index0 = FAILURE , self ._offset
1436
1518
cached = self ._cache ['of_this__i18n' ].get (index0 )
@@ -3079,7 +3161,7 @@ def _read_of_the_act_fra(self):
3079
3161
chunk0 , max0 = None , self ._offset + 9
3080
3162
if max0 <= self ._input_size :
3081
3163
chunk0 = self ._input [self ._offset :max0 ]
3082
- if chunk0 is not None and chunk0 .lower () == 'de la loi ' .lower ():
3164
+ if chunk0 is not None and chunk0 .lower () == 'de la Loi ' .lower ():
3083
3165
address0 = TreeNode (self ._input [self ._offset :self ._offset + 9 ], self ._offset , [])
3084
3166
self ._offset = self ._offset + 9
3085
3167
else :
@@ -3088,13 +3170,13 @@ def _read_of_the_act_fra(self):
3088
3170
self ._failure = self ._offset
3089
3171
self ._expected = []
3090
3172
if self ._offset == self ._failure :
3091
- self ._expected .append (('ProvisionRefs::of_the_act_fra' , '`de la loi `' ))
3173
+ self ._expected .append (('ProvisionRefs::of_the_act_fra' , '`de la Loi `' ))
3092
3174
if address0 is FAILURE :
3093
3175
self ._offset = index1
3094
3176
chunk1 , max1 = None , self ._offset + 9
3095
3177
if max1 <= self ._input_size :
3096
3178
chunk1 = self ._input [self ._offset :max1 ]
3097
- if chunk1 is not None and chunk1 .lower () == 'de la Loi ' .lower ():
3179
+ if chunk1 is not None and chunk1 .lower () == 'de la loi ' .lower ():
3098
3180
address0 = TreeNode (self ._input [self ._offset :self ._offset + 9 ], self ._offset , [])
3099
3181
self ._offset = self ._offset + 9
3100
3182
else :
@@ -3103,12 +3185,132 @@ def _read_of_the_act_fra(self):
3103
3185
self ._failure = self ._offset
3104
3186
self ._expected = []
3105
3187
if self ._offset == self ._failure :
3106
- self ._expected .append (('ProvisionRefs::of_the_act_fra' , '`de la Loi `' ))
3188
+ self ._expected .append (('ProvisionRefs::of_the_act_fra' , '`de la loi `' ))
3107
3189
if address0 is FAILURE :
3108
3190
self ._offset = index1
3109
3191
self ._cache ['of_the_act_fra' ][index0 ] = (address0 , self ._offset )
3110
3192
return address0
3111
3193
3194
+ def _read_of_that_act_eng (self ):
3195
+ address0 , index0 = FAILURE , self ._offset
3196
+ cached = self ._cache ['of_that_act_eng' ].get (index0 )
3197
+ if cached :
3198
+ self ._offset = cached [1 ]
3199
+ return cached [0 ]
3200
+ index1 = self ._offset
3201
+ chunk0 , max0 = None , self ._offset + 11
3202
+ if max0 <= self ._input_size :
3203
+ chunk0 = self ._input [self ._offset :max0 ]
3204
+ if chunk0 is not None and chunk0 .lower () == 'of that Act' .lower ():
3205
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 11 ], self ._offset , [])
3206
+ self ._offset = self ._offset + 11
3207
+ else :
3208
+ address0 = FAILURE
3209
+ if self ._offset > self ._failure :
3210
+ self ._failure = self ._offset
3211
+ self ._expected = []
3212
+ if self ._offset == self ._failure :
3213
+ self ._expected .append (('ProvisionRefs::of_that_act_eng' , '`of that Act`' ))
3214
+ if address0 is FAILURE :
3215
+ self ._offset = index1
3216
+ chunk1 , max1 = None , self ._offset + 11
3217
+ if max1 <= self ._input_size :
3218
+ chunk1 = self ._input [self ._offset :max1 ]
3219
+ if chunk1 is not None and chunk1 .lower () == 'of that act' .lower ():
3220
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 11 ], self ._offset , [])
3221
+ self ._offset = self ._offset + 11
3222
+ else :
3223
+ address0 = FAILURE
3224
+ if self ._offset > self ._failure :
3225
+ self ._failure = self ._offset
3226
+ self ._expected = []
3227
+ if self ._offset == self ._failure :
3228
+ self ._expected .append (('ProvisionRefs::of_that_act_eng' , '`of that act`' ))
3229
+ if address0 is FAILURE :
3230
+ self ._offset = index1
3231
+ self ._cache ['of_that_act_eng' ][index0 ] = (address0 , self ._offset )
3232
+ return address0
3233
+
3234
+ def _read_of_that_act_afr (self ):
3235
+ address0 , index0 = FAILURE , self ._offset
3236
+ cached = self ._cache ['of_that_act_afr' ].get (index0 )
3237
+ if cached :
3238
+ self ._offset = cached [1 ]
3239
+ return cached [0 ]
3240
+ index1 = self ._offset
3241
+ chunk0 , max0 = None , self ._offset + 15
3242
+ if max0 <= self ._input_size :
3243
+ chunk0 = self ._input [self ._offset :max0 ]
3244
+ if chunk0 is not None and chunk0 .lower () == 'van daardie Wet' .lower ():
3245
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 15 ], self ._offset , [])
3246
+ self ._offset = self ._offset + 15
3247
+ else :
3248
+ address0 = FAILURE
3249
+ if self ._offset > self ._failure :
3250
+ self ._failure = self ._offset
3251
+ self ._expected = []
3252
+ if self ._offset == self ._failure :
3253
+ self ._expected .append (('ProvisionRefs::of_that_act_afr' , '`van daardie Wet`' ))
3254
+ if address0 is FAILURE :
3255
+ self ._offset = index1
3256
+ chunk1 , max1 = None , self ._offset + 15
3257
+ if max1 <= self ._input_size :
3258
+ chunk1 = self ._input [self ._offset :max1 ]
3259
+ if chunk1 is not None and chunk1 .lower () == 'van daardie wet' .lower ():
3260
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 15 ], self ._offset , [])
3261
+ self ._offset = self ._offset + 15
3262
+ else :
3263
+ address0 = FAILURE
3264
+ if self ._offset > self ._failure :
3265
+ self ._failure = self ._offset
3266
+ self ._expected = []
3267
+ if self ._offset == self ._failure :
3268
+ self ._expected .append (('ProvisionRefs::of_that_act_afr' , '`van daardie wet`' ))
3269
+ if address0 is FAILURE :
3270
+ self ._offset = index1
3271
+ self ._cache ['of_that_act_afr' ][index0 ] = (address0 , self ._offset )
3272
+ return address0
3273
+
3274
+ def _read_of_that_act_fra (self ):
3275
+ address0 , index0 = FAILURE , self ._offset
3276
+ cached = self ._cache ['of_that_act_fra' ].get (index0 )
3277
+ if cached :
3278
+ self ._offset = cached [1 ]
3279
+ return cached [0 ]
3280
+ index1 = self ._offset
3281
+ chunk0 , max0 = None , self ._offset + 12
3282
+ if max0 <= self ._input_size :
3283
+ chunk0 = self ._input [self ._offset :max0 ]
3284
+ if chunk0 is not None and chunk0 .lower () == 'de cette Loi' .lower ():
3285
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 12 ], self ._offset , [])
3286
+ self ._offset = self ._offset + 12
3287
+ else :
3288
+ address0 = FAILURE
3289
+ if self ._offset > self ._failure :
3290
+ self ._failure = self ._offset
3291
+ self ._expected = []
3292
+ if self ._offset == self ._failure :
3293
+ self ._expected .append (('ProvisionRefs::of_that_act_fra' , '`de cette Loi`' ))
3294
+ if address0 is FAILURE :
3295
+ self ._offset = index1
3296
+ chunk1 , max1 = None , self ._offset + 12
3297
+ if max1 <= self ._input_size :
3298
+ chunk1 = self ._input [self ._offset :max1 ]
3299
+ if chunk1 is not None and chunk1 .lower () == 'de cette loi' .lower ():
3300
+ address0 = TreeNode (self ._input [self ._offset :self ._offset + 12 ], self ._offset , [])
3301
+ self ._offset = self ._offset + 12
3302
+ else :
3303
+ address0 = FAILURE
3304
+ if self ._offset > self ._failure :
3305
+ self ._failure = self ._offset
3306
+ self ._expected = []
3307
+ if self ._offset == self ._failure :
3308
+ self ._expected .append (('ProvisionRefs::of_that_act_fra' , '`de cette loi`' ))
3309
+ if address0 is FAILURE :
3310
+ self ._offset = index1
3311
+ self ._cache ['of_that_act_fra' ][index0 ] = (address0 , self ._offset )
3312
+ return address0
3313
+
3112
3314
def _read_thereof_eng (self ):
3113
3315
address0 , index0 = FAILURE , self ._offset
3114
3316
cached = self ._cache ['thereof_eng' ].get (index0 )
0 commit comments