-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyacc.output
More file actions
9309 lines (7101 loc) · 323 KB
/
Copy pathyacc.output
File metadata and controls
9309 lines (7101 loc) · 323 KB
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
Terminals which are not used
ASSERT
BYVALUE
CAST
CONST
ENUM
FUTURE
GENERIC
GOTO
INNER
OPERATOR
OUTER
REST
VAR
N_ID
Grammar
0 $accept: CompilationUnit $end
1 TypeSpecifier: TypeName
2 | TypeName Dims
3 TypeName: PrimitiveType
4 | QualifiedName
5 ClassNameList: QualifiedName
6 | ClassNameList COMMA QualifiedName
7 PrimitiveType: BOOLEAN
8 | CHAR
9 | BYTE
10 | SHORT
11 | INT
12 | LONG
13 | FLOAT
14 | DOUBLE
15 | VOID
16 SemiColons: SEMICOLON
17 | SemiColons SEMICOLON
18 CompilationUnit: ProgramFile
19 ProgramFile: PackageStatement ImportStatements TypeDeclarations
20 | PackageStatement ImportStatements
21 | PackageStatement TypeDeclarations
22 | ImportStatements TypeDeclarations
23 | PackageStatement
24 | ImportStatements
25 | TypeDeclarations
26 | /* empty */
27 PackageStatement: PACKAGE QualifiedName SemiColons
28 | PACKAGE QualifiedName
29 | PACKAGE
30 | PACKAGE SemiColons
31 | SemiColons
32 | QualifiedName SemiColons
33 | QualifiedName QualifiedName SemiColons
34 TypeDeclarations: TypeDeclarationOptSemi
35 | TypeDeclarations TypeDeclarationOptSemi
36 TypeDeclarationOptSemi: TypeDeclaration
37 | TypeDeclaration SemiColons
38 ImportStatements: ImportStatement
39 | ImportStatements ImportStatement
40 ImportStatement: IMPORT QualifiedName SemiColons
41 | IMPORT QualifiedName POINT MULT SemiColons
42 QualifiedName: IDENTIFIER
43 | QualifiedName POINT IDENTIFIER
44 TypeDeclaration: ClassHeader OPEN_D FieldDeclarations CLOSE_D
45 | ClassHeader OPEN_D CLOSE_D
46 | ClassHeader CLOSE_D
47 | ClassHeader OPEN_D
48 | ClassHeader
49 ClassHeader: Modifiers ClassWord IDENTIFIER Extends Interfaces
50 | Modifiers ClassWord IDENTIFIER Extends
51 | Modifiers ClassWord IDENTIFIER Interfaces
52 | ClassWord IDENTIFIER Extends Interfaces
53 | Modifiers ClassWord IDENTIFIER
54 | QualifiedName ClassWord IDENTIFIER
55 | ClassWord IDENTIFIER Extends
56 | ClassWord IDENTIFIER Interfaces
57 | ClassWord IDENTIFIER
58 | Modifiers ClassWord
59 | ClassWord
60 | ClassWord Extends
61 Modifiers: Modifier
62 | Modifiers Modifier
63 Modifier: ABSTRACT
64 | FINAL
65 | PUBLIC
66 | PROTECTED
67 | PRIVATE
68 | STATIC
69 | TRANSIENT
70 | VOLATILE
71 | NATIVE
72 | SYNCHRONIZED
73 ClassWord: CLASS
74 | INTERFACE
75 | TypeSpecifier
76 Interfaces: IMPLEMENTS ClassNameList
77 | IMPLEMENTS
78 FieldDeclarations: FieldDeclarationOptSemi
79 | FieldDeclarations FieldDeclarationOptSemi
80 FieldDeclarationOptSemi: FieldDeclaration
81 | FieldDeclaration SemiColons
82 FieldDeclaration: FieldVariableDeclaration SEMICOLON
83 | MethodDeclaration
84 | ConstructorDeclaration
85 | StaticInitializer
86 | NonStaticInitializer
87 | TypeDeclaration
88 FieldVariableDeclaration: Modifiers TypeSpecifier VariableDeclarators
89 | TypeSpecifier VariableDeclarators
90 VariableDeclarators: VariableDeclarator
91 | VariableDeclarators COMMA VariableDeclarator
92 VariableDeclarator: DeclaratorName
93 | DeclaratorName ASSIGN VariableInitializer
94 VariableInitializer: Expression
95 | OPEN_D CLOSE_D
96 | OPEN_D ArrayInitializers CLOSE_D
97 ArrayInitializers: VariableInitializer
98 | ArrayInitializers COMMA VariableInitializer
99 | ArrayInitializers COMMA
100 MethodDeclaration: Modifiers TypeSpecifier MethodDeclarator Throws MethodBody
101 | Modifiers TypeSpecifier MethodDeclarator MethodBody
102 | TypeSpecifier MethodDeclarator Throws MethodBody
103 | TypeSpecifier MethodDeclarator MethodBody
104 MethodDeclarator: DeclaratorName OPEN_B ParameterList CLOSE_B
105 | DeclaratorName OPEN_B CLOSE_B
106 | MethodDeclarator OP_DIM
107 ParameterList: Parameter
108 | ParameterList COMMA Parameter
109 Parameter: TypeSpecifier DeclaratorName
110 | TypeSpecifier DeclaratorName ASSIGN
111 | FINAL TypeSpecifier DeclaratorName
112 DeclaratorName: IDENTIFIER
113 | DeclaratorName OP_DIM
114 Throws: THROWS ClassNameList
115 MethodBody: Block
116 | SEMICOLON
117 ConstructorDeclaration: Modifiers ConstructorDeclarator Throws Block
118 | Modifiers ConstructorDeclarator Block
119 | ConstructorDeclarator Throws Block
120 | ConstructorDeclarator Block
121 ConstructorDeclarator: IDENTIFIER OPEN_B ParameterList CLOSE_B
122 | IDENTIFIER OPEN_B CLOSE_B
123 StaticInitializer: STATIC Block
124 NonStaticInitializer: Block
125 Extends: EXTENDS TypeName
126 | Extends COMMA TypeName
127 | EXTENDS
128 Block: OPEN_D LocalVariableDeclarationsAndStatements CLOSE_D
129 | OPEN_D CLOSE_D
130 LocalVariableDeclarationsAndStatements: LocalVariableDeclarationOrStatement
131 | LocalVariableDeclarationsAndStatements LocalVariableDeclarationOrStatement
132 LocalVariableDeclarationOrStatement: LocalVariableDeclarationStatement
133 | Statement
134 LocalVariableDeclarationStatement: TypeSpecifier VariableDeclarators SEMICOLON
135 | FINAL TypeSpecifier VariableDeclarators SEMICOLON
136 Statement: EmptyStatement
137 | LabelStatement
138 | ExpressionStatement SEMICOLON
139 | SelectionStatement
140 | IterationStatement
141 | JumpStatement
142 | GuardingStatement
143 | Block
144 EmptyStatement: SEMICOLON
145 LabelStatement: IDENTIFIER COLON
146 | CASE ConstantExpression COLON
147 | DEFAULT COLON
148 ExpressionStatement: Expression
149 SelectionStatement: IF OPEN_B Expression CLOSE_B Statement
150 | IF OPEN_B Expression CLOSE_B Statement ELSE Statement
151 | SWITCH OPEN_B Expression CLOSE_B Block
152 IterationStatement: WHILE OPEN_B Expression CLOSE_B Statement
153 | DO Statement WHILE OPEN_B Expression CLOSE_B SEMICOLON
154 | FOR OPEN_B ForInit ForExpr ForIncr CLOSE_B Statement
155 | FOR OPEN_B ForInit ForExpr CLOSE_B Statement
156 ForInit: ExpressionStatements SEMICOLON
157 | LocalVariableDeclarationStatement
158 | SEMICOLON
159 ForExpr: Expression SEMICOLON
160 | SEMICOLON
161 ForIncr: ExpressionStatements
162 ExpressionStatements: ExpressionStatement
163 | ExpressionStatements COMMA ExpressionStatement
164 JumpStatement: BREAK IDENTIFIER SEMICOLON
165 | BREAK SEMICOLON
166 | CONTINUE IDENTIFIER SEMICOLON
167 | CONTINUE SEMICOLON
168 | RETURN Expression SEMICOLON
169 | RETURN SEMICOLON
170 | THROW Expression SEMICOLON
171 GuardingStatement: SYNCHRONIZED OPEN_B Expression CLOSE_B Statement
172 | TRY Block Finally
173 | TRY Block Catches
174 | TRY Block Catches Finally
175 Catches: Catch
176 | Catches Catch
177 Catch: CatchHeader Block
178 CatchHeader: CATCH OPEN_B TypeSpecifier IDENTIFIER CLOSE_B
179 | CATCH OPEN_B TypeSpecifier CLOSE_B
180 Finally: FINALLY Block
181 PrimaryExpression: QualifiedName
182 | NotJustName
183 NotJustName: SpecialName
184 | NewAllocationExpression
185 | ComplexPrimary
186 ComplexPrimary: OPEN_B Expression CLOSE_B
187 | ComplexPrimaryNoParenthesis
188 ComplexPrimaryNoParenthesis: LITERAL
189 | INTEGER_VALUE
190 | FLOAT_VALUE
191 | CHAR_VALUE
192 | LONG_VALUE
193 | STRING_VALUE
194 | BOOLLIT
195 | ArrayAccess
196 | FieldAccess
197 | MethodCall
198 ArrayAccess: QualifiedName OPEN Expression CLOSE
199 | ComplexPrimary OPEN Expression CLOSE
200 FieldAccess: NotJustName POINT IDENTIFIER
201 | RealPostfixExpression POINT IDENTIFIER
202 | QualifiedName POINT THIS
203 | QualifiedName POINT CLASS
204 | PrimitiveType POINT CLASS
205 MethodCall: MethodAccess OPEN_B ArgumentList CLOSE_B
206 | MethodAccess OPEN_B CLOSE_B
207 MethodAccess: ComplexPrimaryNoParenthesis
208 | SpecialName
209 | QualifiedName
210 SpecialName: THIS
211 | SUPER
212 | JNULL
213 ArgumentList: Expression
214 | ArgumentList COMMA Expression
215 NewAllocationExpression: PlainNewAllocationExpression
216 | QualifiedName POINT PlainNewAllocationExpression
217 PlainNewAllocationExpression: ArrayAllocationExpression
218 | ClassAllocationExpression
219 | ArrayAllocationExpression OPEN_D CLOSE_D
220 | ClassAllocationExpression OPEN_D CLOSE_D
221 | ArrayAllocationExpression OPEN_D ArrayInitializers CLOSE_D
222 | ClassAllocationExpression OPEN_D FieldDeclarations CLOSE_D
223 ClassAllocationExpression: NEW TypeName OPEN_B ArgumentList CLOSE_B
224 | NEW TypeName OPEN_B CLOSE_B
225 ArrayAllocationExpression: NEW TypeName DimExprs Dims
226 | NEW TypeName DimExprs
227 | NEW TypeName Dims
228 DimExprs: DimExpr
229 | DimExprs DimExpr
230 DimExpr: OPEN Expression CLOSE
231 Dims: OP_DIM
232 | Dims OP_DIM
233 PostfixExpression: PrimaryExpression
234 | RealPostfixExpression
235 RealPostfixExpression: PostfixExpression OP_INC
236 | PostfixExpression OP_DEC
237 UnaryExpression: OP_INC UnaryExpression
238 | OP_DEC UnaryExpression
239 | ArithmeticUnaryOperator CastExpression
240 | LogicalUnaryExpression
241 LogicalUnaryExpression: PostfixExpression
242 | LogicalUnaryOperator UnaryExpression
243 LogicalUnaryOperator: DURA
244 | EXC_MARK
245 ArithmeticUnaryOperator: PLUS
246 | MINUS
247 CastExpression: UnaryExpression
248 | OPEN_B PrimitiveTypeExpression CLOSE_B CastExpression
249 | OPEN_B ClassTypeExpression CLOSE_B CastExpression
250 | OPEN_B Expression CLOSE_B LogicalUnaryExpression
251 PrimitiveTypeExpression: PrimitiveType
252 | PrimitiveType Dims
253 ClassTypeExpression: QualifiedName Dims
254 MultiplicativeExpression: CastExpression
255 | MultiplicativeExpression MULT CastExpression
256 | MultiplicativeExpression DIV CastExpression
257 | MultiplicativeExpression MODULE CastExpression
258 AdditiveExpression: MultiplicativeExpression
259 | AdditiveExpression PLUS MultiplicativeExpression
260 | AdditiveExpression MINUS MultiplicativeExpression
261 ShiftExpression: AdditiveExpression
262 | ShiftExpression OP_SHL AdditiveExpression
263 | ShiftExpression OP_SHR AdditiveExpression
264 | ShiftExpression OP_SHRR AdditiveExpression
265 RelationalExpression: ShiftExpression
266 | RelationalExpression LESS ShiftExpression
267 | RelationalExpression GREATER ShiftExpression
268 | RelationalExpression OP_LE ShiftExpression
269 | RelationalExpression OP_GE ShiftExpression
270 | RelationalExpression INSTANCEOF TypeSpecifier
271 EqualityExpression: RelationalExpression
272 | EqualityExpression OP_EQ RelationalExpression
273 | EqualityExpression OP_NE RelationalExpression
274 AndExpression: EqualityExpression
275 | AndExpression AND EqualityExpression
276 ExclusiveOrExpression: AndExpression
277 | ExclusiveOrExpression XOR AndExpression
278 InclusiveOrExpression: ExclusiveOrExpression
279 | InclusiveOrExpression OR ExclusiveOrExpression
280 ConditionalAndExpression: InclusiveOrExpression
281 | ConditionalAndExpression OP_LAND InclusiveOrExpression
282 ConditionalOrExpression: ConditionalAndExpression
283 | ConditionalOrExpression OP_LOR ConditionalAndExpression
284 ConditionalExpression: ConditionalOrExpression
285 | ConditionalOrExpression QUES_MARK Expression COLON ConditionalExpression
286 AssignmentExpression: ConditionalExpression
287 | UnaryExpression AssignmentOperator AssignmentExpression
288 AssignmentOperator: ASSIGN
289 | ASS_MUL
290 | ASS_DIV
291 | ASS_MOD
292 | ASS_ADD
293 | ASS_SUB
294 | ASS_SHL
295 | ASS_SHR
296 | ASS_SHRR
297 | ASS_AND
298 | ASS_XOR
299 | ASS_OR
300 Expression: AssignmentExpression
301 ConstantExpression: ConditionalExpression
Terminals, with rules where they appear
$end (0) 0
error (256)
ABSTRACT (258) 63
ASSERT (259)
BOOLEAN (260) 7
BREAK (261) 164 165
BYVALUE (262)
CASE (263) 146
CAST (264)
CATCH (265) 178 179
CLASS (266) 73 203 204
CONST (267)
CONTINUE (268) 166 167
DEFAULT (269) 147
DO (270) 153
ENUM (271)
EXTENDS (272) 125 127
FINAL (273) 64 111 135
FINALLY (274) 180
FOR (275) 154 155
FUTURE (276)
GENERIC (277)
GOTO (278)
IF (279) 149 150
IMPLEMENTS (280) 76 77
IMPORT (281) 40 41
INNER (282)
INSTANCEOF (283) 270
INTERFACE (284) 74
NATIVE (285) 71
NEW (286) 223 224 225 226 227
JNULL (287) 212
OPERATOR (288)
OUTER (289)
PACKAGE (290) 27 28 29 30
PRIVATE (291) 67
PROTECTED (292) 66
PUBLIC (293) 65
REST (294)
RETURN (295) 168 169
STATIC (296) 68 123
SUPER (297) 211
SWITCH (298) 151
SYNCHRONIZED (299) 72 171
THIS (300) 202 210
THROW (301) 170
THROWS (302) 114
TRANSIENT (303) 69
TRY (304) 172 173 174
VAR (305)
VOID (306) 15
VOLATILE (307) 70
WHILE (308) 152 153
OP_INC (309) 235 237
OP_DEC (310) 236 238
OP_SHL (311) 262
OP_SHR (312) 263
OP_SHRR (313) 264
OP_GE (314) 269
OP_LE (315) 268
OP_EQ (316) 272
OP_NE (317) 273
OP_LAND (318) 281
OP_LOR (319) 283
OP_DIM (320) 106 113 231 232
ASS_MUL (321) 289
ASS_DIV (322) 290
ASS_MOD (323) 291
ASS_ADD (324) 292
ASS_SUB (325) 293
ASS_SHL (326) 294
ASS_SHR (327) 295
ASS_SHRR (328) 296
ASS_AND (329) 297
ASS_XOR (330) 298
ASS_OR (331) 299
OPEN_D (332) 44 45 47 95 96 128 129 219 220 221 222
CLOSE_D (333) 44 45 46 95 96 128 129 219 220 221 222
OPEN_B (334) 104 105 121 122 149 150 151 152 153 154 155 171 178 179
186 205 206 223 224 248 249 250
CLOSE_B (335) 104 105 121 122 149 150 151 152 153 154 155 171 178 179
186 205 206 223 224 248 249 250
OPEN (336) 198 199 230
CLOSE (337) 198 199 230
COLON (338) 145 146 147 285
COMMA (339) 6 91 98 99 108 126 163 214
PLUS (340) 245 259
MINUS (341) 246 260
MULT (342) 41 255
DIV (343) 256
AND (344) 275
OR (345) 279
QUES_MARK (346) 285
EXC_MARK (347) 244
MODULE (348) 257
DURA (349) 243
ASSIGN (350) 93 110 288
XOR (351) 277
LESS (352) 266
GREATER (353) 267
INT (354) 11
SHORT (355) 10
LONG (356) 12
FLOAT (357) 13
DOUBLE (358) 14
CHAR (359) 8
BYTE (360) 9
IDENTIFIER (361) 42 43 49 50 51 52 53 54 55 56 57 112 121 122 145 164
166 178 200 201
INTEGER_VALUE (362) 189
LONG_VALUE (363) 192
N_ID (364)
FLOAT_VALUE (365) 190
CHAR_VALUE (366) 191
STRING_VALUE (367) 193
BOOLLIT (368) 194
LITERAL (369) 188
e1 (370)
ELSE (371) 150
e4 (372)
e2 (373)
e3 (374)
e5 (375)
e6 (376)
e7 (377)
POINT (378) 41 43 200 201 202 203 204 216
SEMICOLON (379) 16 17 82 116 134 135 138 144 153 156 158 159 160 164
165 166 167 168 169 170
e8 (380)
e9 (381)
Nonterminals, with rules where they appear
$accept (127)
on left: 0
TypeSpecifier (128)
on left: 1 2, on right: 75 88 89 100 101 102 103 109 110 111 134
135 178 179 270
TypeName (129)
on left: 3 4, on right: 1 2 125 126 223 224 225 226 227
ClassNameList (130)
on left: 5 6, on right: 6 76 114
PrimitiveType (131)
on left: 7 8 9 10 11 12 13 14 15, on right: 3 204 251 252
SemiColons (132)
on left: 16 17, on right: 17 27 30 31 32 33 37 40 41 81
CompilationUnit (133)
on left: 18, on right: 0
ProgramFile (134)
on left: 19 20 21 22 23 24 25 26, on right: 18
PackageStatement (135)
on left: 27 28 29 30 31 32 33, on right: 19 20 21 23
TypeDeclarations (136)
on left: 34 35, on right: 19 21 22 25 35
TypeDeclarationOptSemi (137)
on left: 36 37, on right: 34 35
ImportStatements (138)
on left: 38 39, on right: 19 20 22 24 39
ImportStatement (139)
on left: 40 41, on right: 38 39
QualifiedName (140)
on left: 42 43, on right: 4 5 6 27 28 32 33 40 41 43 54 181 198
202 203 209 216 253
TypeDeclaration (141)
on left: 44 45 46 47 48, on right: 36 37 87
ClassHeader (142)
on left: 49 50 51 52 53 54 55 56 57 58 59 60, on right: 44 45 46
47 48
Modifiers (143)
on left: 61 62, on right: 49 50 51 53 58 62 88 100 101 117 118
Modifier (144)
on left: 63 64 65 66 67 68 69 70 71 72, on right: 61 62
ClassWord (145)
on left: 73 74 75, on right: 49 50 51 52 53 54 55 56 57 58 59 60
Interfaces (146)
on left: 76 77, on right: 49 51 52 56
FieldDeclarations (147)
on left: 78 79, on right: 44 79 222
FieldDeclarationOptSemi (148)
on left: 80 81, on right: 78 79
FieldDeclaration (149)
on left: 82 83 84 85 86 87, on right: 80 81
FieldVariableDeclaration (150)
on left: 88 89, on right: 82
VariableDeclarators (151)
on left: 90 91, on right: 88 89 91 134 135
VariableDeclarator (152)
on left: 92 93, on right: 90 91
VariableInitializer (153)
on left: 94 95 96, on right: 93 97 98
ArrayInitializers (154)
on left: 97 98 99, on right: 96 98 99 221
MethodDeclaration (155)
on left: 100 101 102 103, on right: 83
MethodDeclarator (156)
on left: 104 105 106, on right: 100 101 102 103 106
ParameterList (157)
on left: 107 108, on right: 104 108 121
Parameter (158)
on left: 109 110 111, on right: 107 108
DeclaratorName (159)
on left: 112 113, on right: 92 93 104 105 109 110 111 113
Throws (160)
on left: 114, on right: 100 102 117 119
MethodBody (161)
on left: 115 116, on right: 100 101 102 103
ConstructorDeclaration (162)
on left: 117 118 119 120, on right: 84
ConstructorDeclarator (163)
on left: 121 122, on right: 117 118 119 120
StaticInitializer (164)
on left: 123, on right: 85
NonStaticInitializer (165)
on left: 124, on right: 86
Extends (166)
on left: 125 126 127, on right: 49 50 52 55 60 126
Block (167)
on left: 128 129, on right: 115 117 118 119 120 123 124 143 151
172 173 174 177 180
LocalVariableDeclarationsAndStatements (168)
on left: 130 131, on right: 128 131
LocalVariableDeclarationOrStatement (169)
on left: 132 133, on right: 130 131
LocalVariableDeclarationStatement (170)
on left: 134 135, on right: 132 157
Statement (171)
on left: 136 137 138 139 140 141 142 143, on right: 133 149 150
152 153 154 155 171
EmptyStatement (172)
on left: 144, on right: 136
LabelStatement (173)
on left: 145 146 147, on right: 137
ExpressionStatement (174)
on left: 148, on right: 138 162 163
SelectionStatement (175)
on left: 149 150 151, on right: 139
IterationStatement (176)
on left: 152 153 154 155, on right: 140
ForInit (177)
on left: 156 157 158, on right: 154 155
ForExpr (178)
on left: 159 160, on right: 154 155
ForIncr (179)
on left: 161, on right: 154
ExpressionStatements (180)
on left: 162 163, on right: 156 161 163
JumpStatement (181)
on left: 164 165 166 167 168 169 170, on right: 141
GuardingStatement (182)
on left: 171 172 173 174, on right: 142
Catches (183)
on left: 175 176, on right: 173 174 176
Catch (184)
on left: 177, on right: 175 176
CatchHeader (185)
on left: 178 179, on right: 177
Finally (186)
on left: 180, on right: 172 174
PrimaryExpression (187)
on left: 181 182, on right: 233
NotJustName (188)
on left: 183 184 185, on right: 182 200
ComplexPrimary (189)
on left: 186 187, on right: 185 199
ComplexPrimaryNoParenthesis (190)
on left: 188 189 190 191 192 193 194 195 196 197,
on right: 187 207
ArrayAccess (191)
on left: 198 199, on right: 195
FieldAccess (192)
on left: 200 201 202 203 204, on right: 196
MethodCall (193)
on left: 205 206, on right: 197
MethodAccess (194)
on left: 207 208 209, on right: 205 206
SpecialName (195)
on left: 210 211 212, on right: 183 208
ArgumentList (196)
on left: 213 214, on right: 205 214 223
NewAllocationExpression (197)
on left: 215 216, on right: 184
PlainNewAllocationExpression (198)
on left: 217 218 219 220 221 222, on right: 215 216
ClassAllocationExpression (199)
on left: 223 224, on right: 218 220 222
ArrayAllocationExpression (200)
on left: 225 226 227, on right: 217 219 221
DimExprs (201)
on left: 228 229, on right: 225 226 229
DimExpr (202)
on left: 230, on right: 228 229
Dims (203)
on left: 231 232, on right: 2 225 227 232 252 253
PostfixExpression (204)
on left: 233 234, on right: 235 236 241
RealPostfixExpression (205)
on left: 235 236, on right: 201 234
UnaryExpression (206)
on left: 237 238 239 240, on right: 237 238 242 247 287
LogicalUnaryExpression (207)
on left: 241 242, on right: 240 250
LogicalUnaryOperator (208)
on left: 243 244, on right: 242
ArithmeticUnaryOperator (209)
on left: 245 246, on right: 239
CastExpression (210)
on left: 247 248 249 250, on right: 239 248 249 254 255 256 257
PrimitiveTypeExpression (211)
on left: 251 252, on right: 248
ClassTypeExpression (212)
on left: 253, on right: 249
MultiplicativeExpression (213)
on left: 254 255 256 257, on right: 255 256 257 258 259 260
AdditiveExpression (214)
on left: 258 259 260, on right: 259 260 261 262 263 264
ShiftExpression (215)
on left: 261 262 263 264, on right: 262 263 264 265 266 267 268
269
RelationalExpression (216)
on left: 265 266 267 268 269 270, on right: 266 267 268 269 270
271 272 273
EqualityExpression (217)
on left: 271 272 273, on right: 272 273 274 275
AndExpression (218)
on left: 274 275, on right: 275 276 277
ExclusiveOrExpression (219)
on left: 276 277, on right: 277 278 279
InclusiveOrExpression (220)
on left: 278 279, on right: 279 280 281
ConditionalAndExpression (221)
on left: 280 281, on right: 281 282 283
ConditionalOrExpression (222)
on left: 282 283, on right: 283 284 285
ConditionalExpression (223)
on left: 284 285, on right: 285 286 301
AssignmentExpression (224)
on left: 286 287, on right: 287 300
AssignmentOperator (225)
on left: 288 289 290 291 292 293 294 295 296 297 298 299,
on right: 287
Expression (226)
on left: 300, on right: 94 148 149 150 151 152 153 159 168 170
171 186 198 199 213 214 230 250 285
ConstantExpression (227)
on left: 301, on right: 146
state 0
0 $accept: . CompilationUnit $end
ABSTRACT shift, and go to state 1
BOOLEAN shift, and go to state 2
CLASS shift, and go to state 3
FINAL shift, and go to state 4
IMPORT shift, and go to state 5
INTERFACE shift, and go to state 6
NATIVE shift, and go to state 7
PACKAGE shift, and go to state 8
PRIVATE shift, and go to state 9
PROTECTED shift, and go to state 10
PUBLIC shift, and go to state 11
STATIC shift, and go to state 12
SYNCHRONIZED shift, and go to state 13
TRANSIENT shift, and go to state 14
VOID shift, and go to state 15
VOLATILE shift, and go to state 16
INT shift, and go to state 17
SHORT shift, and go to state 18
LONG shift, and go to state 19
FLOAT shift, and go to state 20
DOUBLE shift, and go to state 21
CHAR shift, and go to state 22
BYTE shift, and go to state 23
IDENTIFIER shift, and go to state 24
SEMICOLON shift, and go to state 25
$default reduce using rule 26 (ProgramFile)
TypeSpecifier go to state 26
TypeName go to state 27
PrimitiveType go to state 28
SemiColons go to state 29
CompilationUnit go to state 30
ProgramFile go to state 31
PackageStatement go to state 32
TypeDeclarations go to state 33
TypeDeclarationOptSemi go to state 34
ImportStatements go to state 35
ImportStatement go to state 36
QualifiedName go to state 37
TypeDeclaration go to state 38
ClassHeader go to state 39
Modifiers go to state 40
Modifier go to state 41
ClassWord go to state 42
state 1
63 Modifier: ABSTRACT .
$default reduce using rule 63 (Modifier)
state 2
7 PrimitiveType: BOOLEAN .
$default reduce using rule 7 (PrimitiveType)
state 3
73 ClassWord: CLASS .
$default reduce using rule 73 (ClassWord)
state 4
64 Modifier: FINAL .
$default reduce using rule 64 (Modifier)
state 5
40 ImportStatement: IMPORT . QualifiedName SemiColons
41 | IMPORT . QualifiedName POINT MULT SemiColons
IDENTIFIER shift, and go to state 24
QualifiedName go to state 43
state 6
74 ClassWord: INTERFACE .
$default reduce using rule 74 (ClassWord)
state 7
71 Modifier: NATIVE .
$default reduce using rule 71 (Modifier)
state 8
27 PackageStatement: PACKAGE . QualifiedName SemiColons
28 | PACKAGE . QualifiedName
29 | PACKAGE .
30 | PACKAGE . SemiColons
IDENTIFIER shift, and go to state 24
SEMICOLON shift, and go to state 25
$default reduce using rule 29 (PackageStatement)
SemiColons go to state 44
QualifiedName go to state 45
state 9
67 Modifier: PRIVATE .
$default reduce using rule 67 (Modifier)
state 10
66 Modifier: PROTECTED .
$default reduce using rule 66 (Modifier)
state 11
65 Modifier: PUBLIC .
$default reduce using rule 65 (Modifier)
state 12
68 Modifier: STATIC .
$default reduce using rule 68 (Modifier)
state 13
72 Modifier: SYNCHRONIZED .
$default reduce using rule 72 (Modifier)
state 14
69 Modifier: TRANSIENT .
$default reduce using rule 69 (Modifier)
state 15
15 PrimitiveType: VOID .
$default reduce using rule 15 (PrimitiveType)
state 16
70 Modifier: VOLATILE .
$default reduce using rule 70 (Modifier)
state 17
11 PrimitiveType: INT .
$default reduce using rule 11 (PrimitiveType)
state 18
10 PrimitiveType: SHORT .
$default reduce using rule 10 (PrimitiveType)
state 19
12 PrimitiveType: LONG .
$default reduce using rule 12 (PrimitiveType)
state 20
13 PrimitiveType: FLOAT .
$default reduce using rule 13 (PrimitiveType)
state 21
14 PrimitiveType: DOUBLE .
$default reduce using rule 14 (PrimitiveType)
state 22
8 PrimitiveType: CHAR .
$default reduce using rule 8 (PrimitiveType)
state 23
9 PrimitiveType: BYTE .
$default reduce using rule 9 (PrimitiveType)
state 24