rustlr 0.2.93

LR(1)/LALR(1) parser generator for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
//Abstract syntax types generated by rustlr for grammar java14auto
    
#![allow(unused_variables)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(dead_code)]
extern crate rustlr;
use rustlr::LBox;

#[derive(Debug)]
pub enum while_statement {
  WHILE_210(LBox<expression>,LBox<statement>),
  while_statement_Nothing,
}
impl Default for while_statement { fn default()->Self { while_statement::while_statement_Nothing } }

#[derive(Debug)]
pub enum package_declaration_opt {
  package_declaration_opt_32(LBox<package_declaration>),
  package_declaration_opt_33,
  package_declaration_opt_Nothing,
}
impl Default for package_declaration_opt { fn default()->Self { package_declaration_opt::package_declaration_opt_Nothing } }

#[derive(Debug)]
pub enum array_access {
  array_access_285(LBox<primary_no_new_array>,LBox<expression>),
  array_access_284(LBox<name>,LBox<expression>),
  array_access_286(LBox<array_creation_init>,LBox<expression>),
  array_access_Nothing,
}
impl Default for array_access { fn default()->Self { array_access::array_access_Nothing } }

#[derive(Debug)]
pub enum constant_expression {
  constant_expression_357(LBox<expression>),
  constant_expression_Nothing,
}
impl Default for constant_expression { fn default()->Self { constant_expression::constant_expression_Nothing } }

#[derive(Debug)]
pub enum static_initializer {
  STATIC_115(LBox<block>),
  static_initializer_Nothing,
}
impl Default for static_initializer { fn default()->Self { static_initializer::static_initializer_Nothing } }

#[derive(Debug)]
pub enum name {
  name_28(LBox<qualified_name>),
  name_27(LBox<simple_name>),
  name_Nothing,
}
impl Default for name { fn default()->Self { name::name_Nothing } }

#[derive(Debug)]
pub enum method_body {
  method_body_113(LBox<block>),
  SEMICOLON,
  method_body_Nothing,
}
impl Default for method_body { fn default()->Self { method_body::method_body_Nothing } }

#[derive(Debug)]
pub enum interface_member_declaration {
  interface_member_declaration_137(LBox<abstract_method_declaration>),
  interface_member_declaration_138(LBox<class_declaration>),
  interface_member_declaration_139(LBox<interface_declaration>),
  interface_member_declaration_136(LBox<constant_declaration>),
  SEMICOLON,
  interface_member_declaration_Nothing,
}
impl Default for interface_member_declaration { fn default()->Self { interface_member_declaration::interface_member_declaration_Nothing } }

#[derive(Debug)]
pub enum finally {
  FINALLY_238(LBox<block>),
  finally_Nothing,
}
impl Default for finally { fn default()->Self { finally::finally_Nothing } }

#[derive(Debug)]
pub enum type {
  type_7(LBox<primitive_type>),
  type_8(LBox<reference_type>),
  type_Nothing,
}
impl Default for type { fn default()->Self { type::type_Nothing } }

#[derive(Debug)]
pub enum goal {
  goal_0(LBox<compilation_unit>),
  goal_Nothing,
}
impl Default for goal { fn default()->Self { goal::goal_Nothing } }

#[derive(Debug)]
pub enum conditional_expression {
  conditional_expression_338(LBox<conditional_or_expression>,LBox<expression>,LBox<conditional_expression>),
  conditional_expression_337(LBox<conditional_or_expression>),
  conditional_expression_Nothing,
}
impl Default for conditional_expression { fn default()->Self { conditional_expression::conditional_expression_Nothing } }

#[derive(Debug)]
pub enum synchronized_statement {
  SYNCHRONIZED_230(LBox<expression>,LBox<block>),
  synchronized_statement_Nothing,
}
impl Default for synchronized_statement { fn default()->Self { synchronized_statement::synchronized_statement_Nothing } }

#[derive(Debug)]
pub enum cast_expression {
  LPAREN_305(LBox<expression>,LBox<unary_expression_not_plus_minus>),
  LPAREN_306(LBox<name>,LBox<dims>,LBox<unary_expression_not_plus_minus>),
  LPAREN_304(LBox<primitive_type>,LBox<dims_opt>,LBox<unary_expression>),
  cast_expression_Nothing,
}
impl Default for cast_expression { fn default()->Self { cast_expression::cast_expression_Nothing } }

#[derive(Debug)]
pub enum class_member_declaration {
  class_member_declaration_83(LBox<field_declaration>),
  class_member_declaration_86(LBox<interface_declaration>),
  class_member_declaration_84(LBox<method_declaration>),
  class_member_declaration_85(LBox<modifiers_opt>,String,LBox<super_opt>,LBox<interfaces_opt>,LBox<class_body>),
  SEMICOLON,
  class_member_declaration_Nothing,
}
impl Default for class_member_declaration { fn default()->Self { class_member_declaration::class_member_declaration_Nothing } }

#[derive(Debug)]
pub enum class_type {
  class_type_23(LBox<class_or_interface_type>),
  class_type_Nothing,
}
impl Default for class_type { fn default()->Self { class_type::class_type_Nothing } }

#[derive(Debug)]
pub enum method_declarator {
  IDENTIFIER_100(String,LBox<formal_parameter_list_opt>),
  method_declarator_Nothing,
}
impl Default for method_declarator { fn default()->Self { method_declarator::method_declarator_Nothing } }

#[derive(Debug)]
pub enum constructor_body {
  LBRACE_120(LBox<block_statements>),
  LBRACE_119(LBox<explicit_constructor_invocation>),
  LBRACE_118(LBox<explicit_constructor_invocation>,LBox<block_statements>),
  LBRACE_121,
  constructor_body_Nothing,
}
impl Default for constructor_body { fn default()->Self { constructor_body::constructor_body_Nothing } }

#[derive(Debug)]
pub enum field_declaration {
  field_declaration_88(LBox<modifiers_opt>,LBox<type>,LBox<variable_declarators>),
  field_declaration_Nothing,
}
impl Default for field_declaration { fn default()->Self { field_declaration::field_declaration_Nothing } }

#[derive(Debug)]
pub enum statement_expression {
  statement_expression_192(LBox<postdecrement_expression>),
  statement_expression_188(LBox<assignment>),
  statement_expression_190(LBox<predecrement_expression>),
  statement_expression_191(LBox<postincrement_expression>),
  statement_expression_189(LBox<preincrement_expression>),
  statement_expression_193(LBox<method_invocation>),
  statement_expression_194(LBox<class_instance_creation_expression>),
  statement_expression_Nothing,
}
impl Default for statement_expression { fn default()->Self { statement_expression::statement_expression_Nothing } }

#[derive(Debug)]
pub enum for_statement_no_short_if {
  FOR_214(LBox<for_init_opt>,LBox<expression_opt>,LBox<for_update_opt>,LBox<statement_no_short_if>),
  for_statement_no_short_if_Nothing,
}
impl Default for for_statement_no_short_if { fn default()->Self { for_statement_no_short_if::for_statement_no_short_if_Nothing } }

#[derive(Debug)]
pub enum simple_name {
  IDENTIFIER_29(String),
  simple_name_Nothing,
}
impl Default for simple_name { fn default()->Self { simple_name::simple_name_Nothing } }

#[derive(Debug)]
pub enum type_import_on_demand_declaration {
  IMPORT_46(LBox<name>),
  type_import_on_demand_declaration_Nothing,
}
impl Default for type_import_on_demand_declaration { fn default()->Self { type_import_on_demand_declaration::type_import_on_demand_declaration_Nothing } }

#[derive(Debug)]
pub enum inclusive_or_expression {
  inclusive_or_expression_331(LBox<exclusive_or_expression>),
  inclusive_or_expression_332(LBox<inclusive_or_expression>,LBox<exclusive_or_expression>),
  inclusive_or_expression_Nothing,
}
impl Default for inclusive_or_expression { fn default()->Self { inclusive_or_expression::inclusive_or_expression_Nothing } }

#[derive(Debug)]
pub enum class_body_declaration {
  class_body_declaration_79(LBox<class_member_declaration>),
  class_body_declaration_81(LBox<constructor_declaration>),
  class_body_declaration_80(LBox<static_initializer>),
  class_body_declaration_82(LBox<block>),
  class_body_declaration_Nothing,
}
impl Default for class_body_declaration { fn default()->Self { class_body_declaration::class_body_declaration_Nothing } }

#[derive(Debug)]
pub enum return_statement {
  RETURN_228(LBox<expression_opt>),
  return_statement_Nothing,
}
impl Default for return_statement { fn default()->Self { return_statement::return_statement_Nothing } }

#[derive(Debug)]
pub enum field_access {
  SUPER_278(String),
  field_access_277(LBox<primary>,String),
  field_access_279(LBox<name>,String),
  field_access_Nothing,
}
impl Default for field_access { fn default()->Self { field_access::field_access_Nothing } }

#[derive(Debug)]
pub enum method_declaration {
  method_declaration_97(LBox<method_header>,LBox<method_body>),
  method_declaration_Nothing,
}
impl Default for method_declaration { fn default()->Self { method_declaration::method_declaration_Nothing } }

#[derive(Debug)]
pub enum switch_label {
  DEFAULT_209,
  CASE_208(LBox<constant_expression>),
  switch_label_Nothing,
}
impl Default for switch_label { fn default()->Self { switch_label::switch_label_Nothing } }

#[derive(Debug)]
pub enum dims {
  LBRACK_275,
  dims_Nothing,
}
impl Default for dims { fn default()->Self { dims::dims_Nothing } }

#[derive(Debug)]
pub enum expression_opt {
  expression_opt_354,
  expression_opt_355(LBox<expression>),
  expression_opt_Nothing,
}
impl Default for expression_opt { fn default()->Self { expression_opt::expression_opt_Nothing } }

#[derive(Debug)]
pub enum interface_type_list {
  interface_type_list_72(LBox<interface_type>),
  interface_type_list_73(LBox<interface_type_list>,LBox<interface_type>),
  interface_type_list_Nothing,
}
impl Default for interface_type_list { fn default()->Self { interface_type_list::interface_type_list_Nothing } }

#[derive(Debug)]
pub enum super {
  EXTENDS_66(LBox<class_type>),
  super_Nothing,
}
impl Default for super { fn default()->Self { super::super_Nothing } }

#[derive(Debug)]
pub enum interface_body {
  LBRACE_131(LBox<interface_member_declarations_opt>),
  interface_body_Nothing,
}
impl Default for interface_body { fn default()->Self { interface_body::interface_body_Nothing } }

#[derive(Debug)]
pub enum dim_expr {
  LBRACK_272(LBox<expression>),
  dim_expr_Nothing,
}
impl Default for dim_expr { fn default()->Self { dim_expr::dim_expr_Nothing } }

#[derive(Debug)]
pub enum dims_opt {
  dims_opt_274(LBox<dims>),
  dims_opt_273,
  dims_opt_Nothing,
}
impl Default for dims_opt { fn default()->Self { dims_opt::dims_opt_Nothing } }

#[derive(Debug)]
pub enum assignment_expression {
  assignment_expression_339(LBox<conditional_expression>),
  assignment_expression_340(LBox<assignment>),
  assignment_expression_Nothing,
}
impl Default for assignment_expression { fn default()->Self { assignment_expression::assignment_expression_Nothing } }

#[derive(Debug)]
pub enum throw_statement {
  THROW_229(LBox<expression>),
  throw_statement_Nothing,
}
impl Default for throw_statement { fn default()->Self { throw_statement::throw_statement_Nothing } }

#[derive(Debug)]
pub enum package_declaration {
  PACKAGE_42(LBox<name>),
  package_declaration_Nothing,
}
impl Default for package_declaration { fn default()->Self { package_declaration::package_declaration_Nothing } }

#[derive(Debug)]
pub enum reference_type {
  reference_type_20(LBox<class_or_interface_type>),
  reference_type_21(LBox<array_type>),
  reference_type_Nothing,
}
impl Default for reference_type { fn default()->Self { reference_type::reference_type_Nothing } }

#[derive(Debug)]
pub enum interface_member_declarations {
  interface_member_declarations_134(LBox<interface_member_declaration>),
  interface_member_declarations_135(LBox<interface_member_declarations>,LBox<interface_member_declaration>),
  interface_member_declarations_Nothing,
}
impl Default for interface_member_declarations { fn default()->Self { interface_member_declarations::interface_member_declarations_Nothing } }

#[derive(Debug)]
pub enum block_statements {
  block_statements_153(LBox<block_statements>,LBox<block_statement>),
  block_statements_152(LBox<block_statement>),
  block_statements_Nothing,
}
impl Default for block_statements { fn default()->Self { block_statements::block_statements_Nothing } }

#[derive(Debug)]
pub enum block_statement {
  block_statement_155(LBox<statement>),
  block_statement_154(LBox<local_variable_declaration_statement>),
  block_statement_157(LBox<interface_declaration>),
  block_statement_156(LBox<class_declaration>),
  block_statement_Nothing,
}
impl Default for block_statement { fn default()->Self { block_statement::block_statement_Nothing } }

#[derive(Debug)]
pub enum expression_statement {
  expression_statement_187(LBox<statement_expression>),
  expression_statement_Nothing,
}
impl Default for expression_statement { fn default()->Self { expression_statement::expression_statement_Nothing } }

#[derive(Debug)]
pub enum switch_block_statement_groups {
  switch_block_statement_groups_204(LBox<switch_block_statement_groups>,LBox<switch_block_statement_group>),
  switch_block_statement_groups_203(LBox<switch_block_statement_group>),
  switch_block_statement_groups_Nothing,
}
impl Default for switch_block_statement_groups { fn default()->Self { switch_block_statement_groups::switch_block_statement_groups_Nothing } }

#[derive(Debug)]
pub enum continue_statement {
  CONTINUE_227(LBox<identifier_opt>),
  continue_statement_Nothing,
}
impl Default for continue_statement { fn default()->Self { continue_statement::continue_statement_Nothing } }

#[derive(Debug)]
pub enum single_type_import_declaration {
  IMPORT_45(LBox<name>),
  single_type_import_declaration_Nothing,
}
impl Default for single_type_import_declaration { fn default()->Self { single_type_import_declaration::single_type_import_declaration_Nothing } }

#[derive(Debug)]
pub enum unary_expression {
  unary_expression_294(LBox<predecrement_expression>),
  unary_expression_293(LBox<preincrement_expression>),
  unary_expression_297(LBox<unary_expression_not_plus_minus>),
  unary_expression_Nothing,
}
impl Default for unary_expression { fn default()->Self { unary_expression::unary_expression_Nothing } }

#[derive(Debug)]
pub enum assignment_operator {
  OREQ,
  RSHIFTEQ,
  EQ,
  URSHIFTEQ,
  MINUSEQ,
  ANDEQ,
  MODEQ,
  LSHIFTEQ,
  DIVEQ,
  MULTEQ,
  XOREQ,
  PLUSEQ,
  assignment_operator_Nothing,
}
impl Default for assignment_operator { fn default()->Self { assignment_operator::assignment_operator_Nothing } }

#[derive(Debug)]
pub enum integral_type {
  LONG,
  INT,
  SHORT,
  BYTE,
  CHAR,
  integral_type_Nothing,
}
impl Default for integral_type { fn default()->Self { integral_type::integral_type_Nothing } }

#[derive(Debug)]
pub enum variable_declarators {
  variable_declarators_89(LBox<variable_declarator>),
  variable_declarators_90(LBox<variable_declarators>,LBox<variable_declarator>),
  variable_declarators_Nothing,
}
impl Default for variable_declarators { fn default()->Self { variable_declarators::variable_declarators_Nothing } }

#[derive(Debug)]
pub enum extends_interfaces {
  EXTENDS_129(LBox<interface_type>),
  extends_interfaces_130(LBox<extends_interfaces>,LBox<interface_type>),
  extends_interfaces_Nothing,
}
impl Default for extends_interfaces { fn default()->Self { extends_interfaces::extends_interfaces_Nothing } }

#[derive(Debug)]
pub enum method_invocation {
  SUPER_282(String,LBox<argument_list_opt>),
  method_invocation_281(LBox<primary>,String,LBox<argument_list_opt>),
  method_invocation_280(LBox<name>,LBox<argument_list_opt>),
  method_invocation_283(LBox<name>,String,LBox<argument_list_opt>),
  method_invocation_Nothing,
}
impl Default for method_invocation { fn default()->Self { method_invocation::method_invocation_Nothing } }

#[derive(Debug)]
pub enum interfaces_opt {
  interfaces_opt_70,
  interfaces_opt_71(LBox<interfaces>),
  interfaces_opt_Nothing,
}
impl Default for interfaces_opt { fn default()->Self { interfaces_opt::interfaces_opt_Nothing } }

#[derive(Debug)]
pub enum postdecrement_expression {
  postdecrement_expression_292(LBox<postfix_expression>),
  postdecrement_expression_Nothing,
}
impl Default for postdecrement_expression { fn default()->Self { postdecrement_expression::postdecrement_expression_Nothing } }

#[derive(Debug)]
pub enum variable_declarator_id {
  IDENTIFIER_93(String),
  variable_declarator_id_Nothing,
}
impl Default for variable_declarator_id { fn default()->Self { variable_declarator_id::variable_declarator_id_Nothing } }

#[derive(Debug)]
pub enum postfix_expression {
  postfix_expression_287(LBox<primary>),
  postfix_expression_288(LBox<name>),
  postfix_expression_289(LBox<postincrement_expression>),
  postfix_expression_290(LBox<postdecrement_expression>),
  postfix_expression_Nothing,
}
impl Default for postfix_expression { fn default()->Self { postfix_expression::postfix_expression_Nothing } }

#[derive(Debug)]
pub enum throws_opt {
  throws_opt_108,
  throws_opt_109(LBox<throws>),
  throws_opt_Nothing,
}
impl Default for throws_opt { fn default()->Self { throws_opt::throws_opt_Nothing } }

#[derive(Debug)]
pub enum primary {
  primary_243(LBox<array_creation_uninit>),
  primary_242(LBox<array_creation_init>),
  primary_241(LBox<primary_no_new_array>),
  primary_Nothing,
}
impl Default for primary { fn default()->Self { primary::primary_Nothing } }

#[derive(Debug)]
pub enum conditional_or_expression {
  conditional_or_expression_335(LBox<conditional_and_expression>),
  conditional_or_expression_336(LBox<conditional_or_expression>,LBox<conditional_and_expression>),
  conditional_or_expression_Nothing,
}
impl Default for conditional_or_expression { fn default()->Self { conditional_or_expression::conditional_or_expression_Nothing } }

#[derive(Debug)]
pub enum import_declarations_opt {
  import_declarations_opt_34(LBox<import_declarations>),
  import_declarations_opt_35,
  import_declarations_opt_Nothing,
}
impl Default for import_declarations_opt { fn default()->Self { import_declarations_opt::import_declarations_opt_Nothing } }

#[derive(Debug)]
pub enum constructor_declarator {
  constructor_declarator_117(LBox<simple_name>,LBox<formal_parameter_list_opt>),
  constructor_declarator_Nothing,
}
impl Default for constructor_declarator { fn default()->Self { constructor_declarator::constructor_declarator_Nothing } }

#[derive(Debug)]
pub enum switch_labels {
  switch_labels_207(LBox<switch_labels>,LBox<switch_label>),
  switch_labels_206(LBox<switch_label>),
  switch_labels_Nothing,
}
impl Default for switch_labels { fn default()->Self { switch_labels::switch_labels_Nothing } }

#[derive(Debug)]
pub enum postincrement_expression {
  postincrement_expression_291(LBox<postfix_expression>),
  postincrement_expression_Nothing,
}
impl Default for postincrement_expression { fn default()->Self { postincrement_expression::postincrement_expression_Nothing } }

#[derive(Debug)]
pub enum switch_block {
  LBRACE_200(LBox<switch_block_statement_groups>),
  LBRACE_201(LBox<switch_labels>),
  LBRACE_199(LBox<switch_block_statement_groups>,LBox<switch_labels>),
  LBRACE_202,
  switch_block_Nothing,
}
impl Default for switch_block { fn default()->Self { switch_block::switch_block_Nothing } }

#[derive(Debug)]
pub enum array_creation_init {
  NEW_269(LBox<class_or_interface_type>,LBox<dims>,LBox<array_initializer>),
  NEW_268(LBox<primitive_type>,LBox<dims>,LBox<array_initializer>),
  array_creation_init_Nothing,
}
impl Default for array_creation_init { fn default()->Self { array_creation_init::array_creation_init_Nothing } }

#[derive(Debug)]
pub enum argument_list_opt {
  argument_list_opt_262,
  argument_list_opt_263(LBox<argument_list>),
  argument_list_opt_Nothing,
}
impl Default for argument_list_opt { fn default()->Self { argument_list_opt::argument_list_opt_Nothing } }

#[derive(Debug)]
pub enum modifiers_opt {
  modifiers_opt_50,
  modifiers_opt_51(LBox<modifiers>),
  modifiers_opt_Nothing,
}
impl Default for modifiers_opt { fn default()->Self { modifiers_opt::modifiers_opt_Nothing } }

#[derive(Debug)]
pub enum compilation_unit {
  compilation_unit_31(LBox<package_declaration_opt>,LBox<import_declarations_opt>,LBox<type_declarations_opt>),
  compilation_unit_Nothing,
}
impl Default for compilation_unit { fn default()->Self { compilation_unit::compilation_unit_Nothing } }

#[derive(Debug)]
pub enum type_declaration {
  type_declaration_47(LBox<class_declaration>),
  type_declaration_48(LBox<interface_declaration>),
  SEMICOLON,
  type_declaration_Nothing,
}
impl Default for type_declaration { fn default()->Self { type_declaration::type_declaration_Nothing } }

#[derive(Debug)]
pub enum import_declaration {
  import_declaration_43(LBox<single_type_import_declaration>),
  import_declaration_44(LBox<type_import_on_demand_declaration>),
  import_declaration_Nothing,
}
impl Default for import_declaration { fn default()->Self { import_declaration::import_declaration_Nothing } }

#[derive(Debug)]
pub enum relational_expression {
  relational_expression_318(LBox<shift_expression>),
  relational_expression_320(LBox<relational_expression>,LBox<shift_expression>),
  relational_expression_322(LBox<relational_expression>,LBox<shift_expression>),
  relational_expression_323(LBox<relational_expression>,LBox<reference_type>),
  relational_expression_321(LBox<relational_expression>,LBox<shift_expression>),
  relational_expression_319(LBox<relational_expression>,LBox<shift_expression>),
  relational_expression_Nothing,
}
impl Default for relational_expression { fn default()->Self { relational_expression::relational_expression_Nothing } }

#[derive(Debug)]
pub enum break_statement {
  BREAK_226(LBox<identifier_opt>),
  break_statement_Nothing,
}
impl Default for break_statement { fn default()->Self { break_statement::break_statement_Nothing } }

#[derive(Debug)]
pub enum conditional_and_expression {
  conditional_and_expression_333(LBox<inclusive_or_expression>),
  conditional_and_expression_334(LBox<conditional_and_expression>,LBox<inclusive_or_expression>),
  conditional_and_expression_Nothing,
}
impl Default for conditional_and_expression { fn default()->Self { conditional_and_expression::conditional_and_expression_Nothing } }

#[derive(Debug)]
pub enum switch_block_statement_group {
  switch_block_statement_group_205(LBox<switch_labels>,LBox<block_statements>),
  switch_block_statement_group_Nothing,
}
impl Default for switch_block_statement_group { fn default()->Self { switch_block_statement_group::switch_block_statement_group_Nothing } }

#[derive(Debug)]
pub enum expression {
  expression_356(LBox<assignment_expression>),
  expression_Nothing,
}
impl Default for expression { fn default()->Self { expression::expression_Nothing } }

#[derive(Debug)]
pub enum constructor_declaration {
  constructor_declaration_116(LBox<modifiers_opt>,LBox<constructor_declarator>,LBox<throws_opt>,LBox<constructor_body>),
  constructor_declaration_Nothing,
}
impl Default for constructor_declaration { fn default()->Self { constructor_declaration::constructor_declaration_Nothing } }

#[derive(Debug)]
pub enum variable_initializers {
  variable_initializers_147(LBox<variable_initializer>),
  variable_initializers_148(LBox<variable_initializers>,LBox<variable_initializer>),
  variable_initializers_Nothing,
}
impl Default for variable_initializers { fn default()->Self { variable_initializers::variable_initializers_Nothing } }

#[derive(Debug)]
pub enum array_creation_uninit {
  NEW_266(LBox<primitive_type>,LBox<dim_exprs>,LBox<dims_opt>),
  NEW_267(LBox<class_or_interface_type>,LBox<dim_exprs>,LBox<dims_opt>),
  array_creation_uninit_Nothing,
}
impl Default for array_creation_uninit { fn default()->Self { array_creation_uninit::array_creation_uninit_Nothing } }

#[derive(Debug)]
pub enum dim_exprs {
  dim_exprs_270(LBox<dim_expr>),
  dim_exprs_271(LBox<dim_exprs>,LBox<dim_expr>),
  dim_exprs_Nothing,
}
impl Default for dim_exprs { fn default()->Self { dim_exprs::dim_exprs_Nothing } }

#[derive(Debug)]
pub enum qualified_name {
  qualified_name_30(LBox<name>,String),
  qualified_name_Nothing,
}
impl Default for qualified_name { fn default()->Self { qualified_name::qualified_name_Nothing } }

#[derive(Debug)]
pub enum explicit_constructor_invocation {
  SUPER_123(LBox<argument_list_opt>),
  explicit_constructor_invocation_124(LBox<primary>,LBox<argument_list_opt>),
  THIS_122(LBox<argument_list_opt>),
  explicit_constructor_invocation_125(LBox<primary>,LBox<argument_list_opt>),
  explicit_constructor_invocation_Nothing,
}
impl Default for explicit_constructor_invocation { fn default()->Self { explicit_constructor_invocation::explicit_constructor_invocation_Nothing } }

#[derive(Debug)]
pub enum block {
  LBRACE_149(LBox<block_statements_opt>),
  block_Nothing,
}
impl Default for block { fn default()->Self { block::block_Nothing } }

#[derive(Debug)]
pub enum for_init {
  for_init_218(LBox<local_variable_declaration>),
  for_init_217(LBox<statement_expression_list>),
  for_init_Nothing,
}
impl Default for for_init { fn default()->Self { for_init::for_init_Nothing } }

#[derive(Debug)]
pub enum multiplicative_expression {
  multiplicative_expression_308(LBox<multiplicative_expression>,LBox<unary_expression>),
  multiplicative_expression_310(LBox<multiplicative_expression>,LBox<unary_expression>),
  multiplicative_expression_307(LBox<unary_expression>),
  multiplicative_expression_309(LBox<multiplicative_expression>,LBox<unary_expression>),
  multiplicative_expression_Nothing,
}
impl Default for multiplicative_expression { fn default()->Self { multiplicative_expression::multiplicative_expression_Nothing } }

#[derive(Debug)]
pub enum predecrement_expression {
  MINUSMINUS_299(LBox<unary_expression>),
  predecrement_expression_Nothing,
}
impl Default for predecrement_expression { fn default()->Self { predecrement_expression::predecrement_expression_Nothing } }

#[derive(Debug)]
pub enum if_then_else_statement_no_short_if {
  IF_197(LBox<expression>,LBox<statement_no_short_if>,LBox<statement_no_short_if>),
  if_then_else_statement_no_short_if_Nothing,
}
impl Default for if_then_else_statement_no_short_if { fn default()->Self { if_then_else_statement_no_short_if::if_then_else_statement_no_short_if_Nothing } }

#[derive(Debug)]
pub enum variable_initializer {
  variable_initializer_96(LBox<array_initializer>),
  variable_initializer_95(LBox<expression>),
  variable_initializer_Nothing,
}
impl Default for variable_initializer { fn default()->Self { variable_initializer::variable_initializer_Nothing } }

#[derive(Debug)]
pub enum method_header {
  method_header_98(LBox<modifiers_opt>,LBox<type>,LBox<method_declarator>,LBox<throws_opt>),
  method_header_99(LBox<modifiers_opt>,LBox<method_declarator>,LBox<throws_opt>),
  method_header_Nothing,
}
impl Default for method_header { fn default()->Self { method_header::method_header_Nothing } }

#[derive(Debug)]
pub enum import_declarations {
  import_declarations_38(LBox<import_declaration>),
  import_declarations_39(LBox<import_declarations>,LBox<import_declaration>),
  import_declarations_Nothing,
}
impl Default for import_declarations { fn default()->Self { import_declarations::import_declarations_Nothing } }

#[derive(Debug)]
pub enum array_initializer {
  LBRACE_146,
  LBRACE_145,
  LBRACE_144(LBox<variable_initializers>),
  LBRACE_143(LBox<variable_initializers>),
  array_initializer_Nothing,
}
impl Default for array_initializer { fn default()->Self { array_initializer::array_initializer_Nothing } }

#[derive(Debug)]
pub enum labeled_statement {
  IDENTIFIER_185(String,LBox<statement>),
  labeled_statement_Nothing,
}
impl Default for labeled_statement { fn default()->Self { labeled_statement::labeled_statement_Nothing } }

#[derive(Debug)]
pub enum empty_statement {
  SEMICOLON,
  empty_statement_Nothing,
}
impl Default for empty_statement { fn default()->Self { empty_statement::empty_statement_Nothing } }

#[derive(Debug)]
pub enum numeric_type {
  numeric_type_12(LBox<floating_point_type>),
  numeric_type_11(LBox<integral_type>),
  numeric_type_Nothing,
}
impl Default for numeric_type { fn default()->Self { numeric_type::numeric_type_Nothing } }

#[derive(Debug)]
pub enum interfaces {
  IMPLEMENTS_69(LBox<interface_type_list>),
  interfaces_Nothing,
}
impl Default for interfaces { fn default()->Self { interfaces::interfaces_Nothing } }

#[derive(Debug)]
pub enum catch_clause {
  CATCH_237(LBox<formal_parameter>,LBox<block>),
  catch_clause_Nothing,
}
impl Default for catch_clause { fn default()->Self { catch_clause::catch_clause_Nothing } }

#[derive(Debug)]
pub enum equality_expression {
  equality_expression_326(LBox<equality_expression>,LBox<relational_expression>),
  equality_expression_325(LBox<equality_expression>,LBox<relational_expression>),
  equality_expression_324(LBox<relational_expression>),
  equality_expression_Nothing,
}
impl Default for equality_expression { fn default()->Self { equality_expression::equality_expression_Nothing } }

#[derive(Debug)]
pub enum floating_point_type {
  FLOAT,
  DOUBLE,
  floating_point_type_Nothing,
}
impl Default for floating_point_type { fn default()->Self { floating_point_type::floating_point_type_Nothing } }

#[derive(Debug)]
pub enum block_statements_opt {
  block_statements_opt_151(LBox<block_statements>),
  block_statements_opt_150,
  block_statements_opt_Nothing,
}
impl Default for block_statements_opt { fn default()->Self { block_statements_opt::block_statements_opt_Nothing } }

#[derive(Debug)]
pub enum unary_expression_not_plus_minus {
  unary_expression_not_plus_minus_303(LBox<cast_expression>),
  unary_expression_not_plus_minus_300(LBox<postfix_expression>),
  COMP_301(LBox<unary_expression>),
  NOT_302(LBox<unary_expression>),
  unary_expression_not_plus_minus_Nothing,
}
impl Default for unary_expression_not_plus_minus { fn default()->Self { unary_expression_not_plus_minus::unary_expression_not_plus_minus_Nothing } }

#[derive(Debug)]
pub enum variable_declarator {
  variable_declarator_92(LBox<variable_declarator_id>,LBox<variable_initializer>),
  variable_declarator_91(LBox<variable_declarator_id>),
  variable_declarator_Nothing,
}
impl Default for variable_declarator { fn default()->Self { variable_declarator::variable_declarator_Nothing } }

#[derive(Debug)]
pub enum for_init_opt {
  for_init_opt_215,
  for_init_opt_216(LBox<for_init>),
  for_init_opt_Nothing,
}
impl Default for for_init_opt { fn default()->Self { for_init_opt::for_init_opt_Nothing } }

#[derive(Debug)]
pub enum exclusive_or_expression {
  exclusive_or_expression_330(LBox<exclusive_or_expression>,LBox<and_expression>),
  exclusive_or_expression_329(LBox<and_expression>),
  exclusive_or_expression_Nothing,
}
impl Default for exclusive_or_expression { fn default()->Self { exclusive_or_expression::exclusive_or_expression_Nothing } }

#[derive(Debug)]
pub enum constant_declaration {
  constant_declaration_141(LBox<field_declaration>),
  constant_declaration_Nothing,
}
impl Default for constant_declaration { fn default()->Self { constant_declaration::constant_declaration_Nothing } }

#[derive(Debug)]
pub enum catches {
  catches_236(LBox<catches>,LBox<catch_clause>),
  catches_235(LBox<catch_clause>),
  catches_Nothing,
}
impl Default for catches { fn default()->Self { catches::catches_Nothing } }

#[derive(Debug)]
pub enum if_then_else_statement {
  IF_196(LBox<expression>,LBox<statement_no_short_if>,LBox<statement>),
  if_then_else_statement_Nothing,
}
impl Default for if_then_else_statement { fn default()->Self { if_then_else_statement::if_then_else_statement_Nothing } }

#[derive(Debug)]
pub enum for_statement {
  FOR_213(LBox<for_init_opt>,LBox<expression_opt>,LBox<for_update_opt>,LBox<statement>),
  for_statement_Nothing,
}
impl Default for for_statement { fn default()->Self { for_statement::for_statement_Nothing } }

#[derive(Debug)]
pub enum assignment {
  assignment_341(LBox<postfix_expression>,LBox<assignment_operator>,LBox<assignment_expression>),
  assignment_Nothing,
}
impl Default for assignment { fn default()->Self { assignment::assignment_Nothing } }

#[derive(Debug)]
pub enum modifiers {
  modifiers_53(LBox<modifiers>,LBox<modifier>),
  modifiers_52(LBox<modifier>),
  modifiers_Nothing,
}
impl Default for modifiers { fn default()->Self { modifiers::modifiers_Nothing } }

#[derive(Debug)]
pub enum abstract_method_declaration {
  abstract_method_declaration_142(LBox<method_header>),
  abstract_method_declaration_Nothing,
}
impl Default for abstract_method_declaration { fn default()->Self { abstract_method_declaration::abstract_method_declaration_Nothing } }

#[derive(Debug)]
pub enum class_body_declarations {
  class_body_declarations_78(LBox<class_body_declarations>,LBox<class_body_declaration>),
  class_body_declarations_77(LBox<class_body_declaration>),
  class_body_declarations_Nothing,
}
impl Default for class_body_declarations { fn default()->Self { class_body_declarations::class_body_declarations_Nothing } }

#[derive(Debug)]
pub enum array_type {
  array_type_26(LBox<name>,LBox<dims>),
  array_type_25(LBox<primitive_type>,LBox<dims>),
  array_type_Nothing,
}
impl Default for array_type { fn default()->Self { array_type::array_type_Nothing } }

#[derive(Debug)]
pub enum interface_declaration {
  interface_declaration_126(LBox<modifiers_opt>,String,LBox<extends_interfaces_opt>,LBox<interface_body>),
  interface_declaration_Nothing,
}
impl Default for interface_declaration { fn default()->Self { interface_declaration::interface_declaration_Nothing } }

#[derive(Debug)]
pub enum catches_opt {
  catches_opt_234(LBox<catches>),
  catches_opt_233,
  catches_opt_Nothing,
}
impl Default for catches_opt { fn default()->Self { catches_opt::catches_opt_Nothing } }

#[derive(Debug)]
pub enum for_update {
  for_update_221(LBox<statement_expression_list>),
  for_update_Nothing,
}
impl Default for for_update { fn default()->Self { for_update::for_update_Nothing } }

#[derive(Debug)]
pub enum class_instance_creation_expression {
  NEW_256(LBox<class_or_interface_type>,LBox<argument_list_opt>),
  class_instance_creation_expression_259(LBox<primary>,String,LBox<argument_list_opt>,LBox<class_body>),
  class_instance_creation_expression_261(LBox<name>,String,LBox<argument_list_opt>,LBox<class_body>),
  class_instance_creation_expression_260(LBox<name>,String,LBox<argument_list_opt>),
  class_instance_creation_expression_258(LBox<primary>,String,LBox<argument_list_opt>),
  NEW_257(LBox<class_or_interface_type>,LBox<argument_list_opt>,LBox<class_body>),
  class_instance_creation_expression_Nothing,
}
impl Default for class_instance_creation_expression { fn default()->Self { class_instance_creation_expression::class_instance_creation_expression_Nothing } }

#[derive(Debug)]
pub enum preincrement_expression {
  PLUSPLUS_298(LBox<unary_expression>),
  preincrement_expression_Nothing,
}
impl Default for preincrement_expression { fn default()->Self { preincrement_expression::preincrement_expression_Nothing } }

#[derive(Debug)]
pub enum shift_expression {
  shift_expression_314(LBox<additive_expression>),
  shift_expression_315(LBox<shift_expression>,LBox<additive_expression>),
  shift_expression_317(LBox<shift_expression>,LBox<additive_expression>),
  shift_expression_316(LBox<shift_expression>,LBox<additive_expression>),
  shift_expression_Nothing,
}
impl Default for shift_expression { fn default()->Self { shift_expression::shift_expression_Nothing } }

#[derive(Debug)]
pub enum super_opt {
  super_opt_68(LBox<super>),
  super_opt_67,
  super_opt_Nothing,
}
impl Default for super_opt { fn default()->Self { super_opt::super_opt_Nothing } }

#[derive(Debug)]
pub enum class_declaration {
  class_declaration_65(LBox<modifiers_opt>,String,LBox<super_opt>,LBox<interfaces_opt>,LBox<class_body>),
  class_declaration_Nothing,
}
impl Default for class_declaration { fn default()->Self { class_declaration::class_declaration_Nothing } }

#[derive(Debug)]
pub enum formal_parameter {
  formal_parameter_106(LBox<type>,LBox<variable_declarator_id>),
  FINAL_107(LBox<type>,LBox<variable_declarator_id>),
  formal_parameter_Nothing,
}
impl Default for formal_parameter { fn default()->Self { formal_parameter::formal_parameter_Nothing } }

#[derive(Debug)]
pub enum type_declarations {
  type_declarations_40(LBox<type_declaration>),
  type_declarations_41(LBox<type_declarations>,LBox<type_declaration>),
  type_declarations_Nothing,
}
impl Default for type_declarations { fn default()->Self { type_declarations::type_declarations_Nothing } }

#[derive(Debug)]
pub enum switch_statement {
  SWITCH_198(LBox<expression>,LBox<switch_block>),
  switch_statement_Nothing,
}
impl Default for switch_statement { fn default()->Self { switch_statement::switch_statement_Nothing } }

#[derive(Debug)]
pub enum do_statement {
  DO_212(LBox<statement>,LBox<expression>),
  do_statement_Nothing,
}
impl Default for do_statement { fn default()->Self { do_statement::do_statement_Nothing } }

#[derive(Debug)]
pub enum while_statement_no_short_if {
  WHILE_211(LBox<expression>,LBox<statement_no_short_if>),
  while_statement_no_short_if_Nothing,
}
impl Default for while_statement_no_short_if { fn default()->Self { while_statement_no_short_if::while_statement_no_short_if_Nothing } }

#[derive(Debug)]
pub enum interface_member_declarations_opt {
  interface_member_declarations_opt_132,
  interface_member_declarations_opt_133(LBox<interface_member_declarations>),
  interface_member_declarations_opt_Nothing,
}
impl Default for interface_member_declarations_opt { fn default()->Self { interface_member_declarations_opt::interface_member_declarations_opt_Nothing } }

#[derive(Debug)]
pub enum labeled_statement_no_short_if {
  IDENTIFIER_186(String,LBox<statement_no_short_if>),
  labeled_statement_no_short_if_Nothing,
}
impl Default for labeled_statement_no_short_if { fn default()->Self { labeled_statement_no_short_if::labeled_statement_no_short_if_Nothing } }

#[derive(Debug)]
pub enum assert_statement {
  ASSERT_240(LBox<expression>,LBox<expression>),
  ASSERT_239(LBox<expression>),
  assert_statement_Nothing,
}
impl Default for assert_statement { fn default()->Self { assert_statement::assert_statement_Nothing } }

#[derive(Debug)]
pub enum extends_interfaces_opt {
  extends_interfaces_opt_127,
  extends_interfaces_opt_128(LBox<extends_interfaces>),
  extends_interfaces_opt_Nothing,
}
impl Default for extends_interfaces_opt { fn default()->Self { extends_interfaces_opt::extends_interfaces_opt_Nothing } }

#[derive(Debug)]
pub enum if_then_statement {
  IF_195(LBox<expression>,LBox<statement>),
  if_then_statement_Nothing,
}
impl Default for if_then_statement { fn default()->Self { if_then_statement::if_then_statement_Nothing } }

#[derive(Debug)]
pub enum statement_without_trailing_substatement {
  statement_without_trailing_substatement_183(LBox<assert_statement>),
  statement_without_trailing_substatement_179(LBox<return_statement>),
  statement_without_trailing_substatement_180(LBox<synchronized_statement>),
  statement_without_trailing_substatement_181(LBox<throw_statement>),
  statement_without_trailing_substatement_177(LBox<break_statement>),
  statement_without_trailing_substatement_176(LBox<do_statement>),
  statement_without_trailing_substatement_172(LBox<block>),
  statement_without_trailing_substatement_174(LBox<expression_statement>),
  statement_without_trailing_substatement_178(LBox<continue_statement>),
  statement_without_trailing_substatement_173(LBox<empty_statement>),
  statement_without_trailing_substatement_182(LBox<try_statement>),
  statement_without_trailing_substatement_175(LBox<switch_statement>),
  statement_without_trailing_substatement_Nothing,
}
impl Default for statement_without_trailing_substatement { fn default()->Self { statement_without_trailing_substatement::statement_without_trailing_substatement_Nothing } }

#[derive(Debug)]
pub enum primitive_type {
  primitive_type_9(LBox<numeric_type>),
  BOOLEAN,
  primitive_type_Nothing,
}
impl Default for primitive_type { fn default()->Self { primitive_type::primitive_type_Nothing } }

#[derive(Debug)]
pub enum modifier {
  PUBLIC,
  ABSTRACT,
  NATIVE,
  STRICTFP,
  TRANSIENT,
  STATIC,
  FINAL,
  SYNCHRONIZED,
  VOLATILE,
  PRIVATE,
  PROTECTED,
  modifier_Nothing,
}
impl Default for modifier { fn default()->Self { modifier::modifier_Nothing } }

#[derive(Debug)]
pub enum primary_no_new_array {
  VOID_252,
  primary_no_new_array_244(LBox<literal>),
  primary_no_new_array_248(LBox<field_access>),
  LPAREN_246(LBox<expression>),
  primary_no_new_array_254(LBox<name>),
  primary_no_new_array_253(LBox<array_type>),
  primary_no_new_array_255(LBox<name>),
  primary_no_new_array_247(LBox<class_instance_creation_expression>),
  primary_no_new_array_249(LBox<method_invocation>),
  THIS,
  primary_no_new_array_250(LBox<array_access>),
  primary_no_new_array_251(LBox<primitive_type>),
  primary_no_new_array_Nothing,
}
impl Default for primary_no_new_array { fn default()->Self { primary_no_new_array::primary_no_new_array_Nothing } }

#[derive(Debug)]
pub enum class_body_declarations_opt {
  class_body_declarations_opt_76(LBox<class_body_declarations>),
  class_body_declarations_opt_75,
  class_body_declarations_opt_Nothing,
}
impl Default for class_body_declarations_opt { fn default()->Self { class_body_declarations_opt::class_body_declarations_opt_Nothing } }

#[derive(Debug)]
pub enum class_body {
  LBRACE_74(LBox<class_body_declarations_opt>),
  class_body_Nothing,
}
impl Default for class_body { fn default()->Self { class_body::class_body_Nothing } }

#[derive(Debug)]
pub enum local_variable_declaration {
  FINAL_160(LBox<type>,LBox<variable_declarators>),
  local_variable_declaration_159(LBox<type>,LBox<variable_declarators>),
  local_variable_declaration_Nothing,
}
impl Default for local_variable_declaration { fn default()->Self { local_variable_declaration::local_variable_declaration_Nothing } }

#[derive(Debug)]
pub enum argument_list {
  argument_list_265(LBox<argument_list>,LBox<expression>),
  argument_list_264(LBox<expression>),
  argument_list_Nothing,
}
impl Default for argument_list { fn default()->Self { argument_list::argument_list_Nothing } }

#[derive(Debug)]
pub enum try_statement {
  TRY_231(LBox<block>,LBox<catches>),
  TRY_232(LBox<block>,LBox<catches_opt>,LBox<finally>),
  try_statement_Nothing,
}
impl Default for try_statement { fn default()->Self { try_statement::try_statement_Nothing } }

#[derive(Debug)]
pub enum literal {
  BOOLEAN_LITERAL_3(bool),
  INTEGER_LITERAL_1(i32),
  STRING_LITERAL_5(String),
  FLOATING_POINT_LITERAL_2(f64),
  CHARACTER_LITERAL_4(char),
  NULL_LITERAL,
  literal_Nothing,
}
impl Default for literal { fn default()->Self { literal::literal_Nothing } }

#[derive(Debug)]
pub enum statement {
  statement_164(LBox<if_then_else_statement>),
  statement_161(LBox<statement_without_trailing_substatement>),
  statement_163(LBox<if_then_statement>),
  statement_165(LBox<while_statement>),
  statement_162(LBox<labeled_statement>),
  statement_166(LBox<for_statement>),
  statement_Nothing,
}
impl Default for statement { fn default()->Self { statement::statement_Nothing } }

#[derive(Debug)]
pub enum additive_expression {
  additive_expression_312(LBox<additive_expression>,LBox<multiplicative_expression>),
  additive_expression_313(LBox<additive_expression>,LBox<multiplicative_expression>),
  additive_expression_311(LBox<multiplicative_expression>),
  additive_expression_Nothing,
}
impl Default for additive_expression { fn default()->Self { additive_expression::additive_expression_Nothing } }

#[derive(Debug)]
pub enum throws {
  THROWS_110(LBox<class_type_list>),
  throws_Nothing,
}
impl Default for throws { fn default()->Self { throws::throws_Nothing } }

#[derive(Debug)]
pub enum local_variable_declaration_statement {
  local_variable_declaration_statement_158(LBox<local_variable_declaration>),
  local_variable_declaration_statement_Nothing,
}
impl Default for local_variable_declaration_statement { fn default()->Self { local_variable_declaration_statement::local_variable_declaration_statement_Nothing } }

#[derive(Debug)]
pub enum class_or_interface_type {
  class_or_interface_type_22(LBox<name>),
  class_or_interface_type_Nothing,
}
impl Default for class_or_interface_type { fn default()->Self { class_or_interface_type::class_or_interface_type_Nothing } }

#[derive(Debug)]
pub enum statement_expression_list {
  statement_expression_list_222(LBox<statement_expression>),
  statement_expression_list_223(LBox<statement_expression_list>,LBox<statement_expression>),
  statement_expression_list_Nothing,
}
impl Default for statement_expression_list { fn default()->Self { statement_expression_list::statement_expression_list_Nothing } }

#[derive(Debug)]
pub enum formal_parameter_list_opt {
  formal_parameter_list_opt_103(LBox<formal_parameter_list>),
  formal_parameter_list_opt_102,
  formal_parameter_list_opt_Nothing,
}
impl Default for formal_parameter_list_opt { fn default()->Self { formal_parameter_list_opt::formal_parameter_list_opt_Nothing } }

#[derive(Debug)]
pub enum formal_parameter_list {
  formal_parameter_list_104(LBox<formal_parameter>),
  formal_parameter_list_105(LBox<formal_parameter_list>,LBox<formal_parameter>),
  formal_parameter_list_Nothing,
}
impl Default for formal_parameter_list { fn default()->Self { formal_parameter_list::formal_parameter_list_Nothing } }

#[derive(Debug)]
pub enum interface_type {
  interface_type_24(LBox<class_or_interface_type>),
  interface_type_Nothing,
}
impl Default for interface_type { fn default()->Self { interface_type::interface_type_Nothing } }

#[derive(Debug)]
pub enum statement_no_short_if {
  statement_no_short_if_167(LBox<statement_without_trailing_substatement>),
  statement_no_short_if_168(LBox<labeled_statement_no_short_if>),
  statement_no_short_if_171(LBox<for_statement_no_short_if>),
  statement_no_short_if_169(LBox<if_then_else_statement_no_short_if>),
  statement_no_short_if_170(LBox<while_statement_no_short_if>),
  statement_no_short_if_Nothing,
}
impl Default for statement_no_short_if { fn default()->Self { statement_no_short_if::statement_no_short_if_Nothing } }

#[derive(Debug)]
pub enum identifier_opt {
  IDENTIFIER_225(String),
  identifier_opt_224,
  identifier_opt_Nothing,
}
impl Default for identifier_opt { fn default()->Self { identifier_opt::identifier_opt_Nothing } }

#[derive(Debug)]
pub enum and_expression {
  and_expression_327(LBox<equality_expression>),
  and_expression_328(LBox<and_expression>,LBox<equality_expression>),
  and_expression_Nothing,
}
impl Default for and_expression { fn default()->Self { and_expression::and_expression_Nothing } }

#[derive(Debug)]
pub enum for_update_opt {
  for_update_opt_219,
  for_update_opt_220(LBox<for_update>),
  for_update_opt_Nothing,
}
impl Default for for_update_opt { fn default()->Self { for_update_opt::for_update_opt_Nothing } }

#[derive(Debug)]
pub enum type_declarations_opt {
  type_declarations_opt_37,
  type_declarations_opt_36(LBox<type_declarations>),
  type_declarations_opt_Nothing,
}
impl Default for type_declarations_opt { fn default()->Self { type_declarations_opt::type_declarations_opt_Nothing } }

#[derive(Debug)]
pub enum class_type_list {
  class_type_list_112(LBox<class_type_list>,LBox<class_type>),
  class_type_list_111(LBox<class_type>),
  class_type_list_Nothing,
}
impl Default for class_type_list { fn default()->Self { class_type_list::class_type_list_Nothing } }