Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.15 KB | None | 0 0
  1. Terminals unused in grammar
  2.  
  3. RESERVED
  4. ARROW
  5.  
  6.  
  7. Rules useless in parser due to conflicts
  8.  
  9. 14 AuxMethodHeaderG: Type
  10.  
  11. 75 AuxExprG4: MINUS
  12. 77 | PLUS
  13.  
  14.  
  15. State 20 conflicts: 1 shift/reduce
  16. State 24 conflicts: 1 reduce/reduce
  17. State 38 conflicts: 1 reduce/reduce
  18. State 39 conflicts: 1 reduce/reduce
  19. State 111 conflicts: 1 shift/reduce
  20. State 145 conflicts: 4 reduce/reduce
  21. State 147 conflicts: 4 reduce/reduce
  22.  
  23.  
  24. Grammar
  25.  
  26. 0 $accept: Program $end
  27.  
  28. 1 Program: CLASS ID LBRACE AuxR RBRACE
  29.  
  30. 2 AuxR: MethodDecl AuxR
  31. 3 | FieldDecl AuxR
  32. 4 | SEMICOLON AuxR
  33. 5 | %empty
  34.  
  35. 6 MethodDecl: PUBLIC STATIC MethodHeader MethodBody
  36.  
  37. 7 FieldDecl: PUBLIC STATIC Type ID AuxFieldDeclR SEMICOLON
  38.  
  39. 8 AuxFieldDeclR: COMMA ID AuxFieldDeclR
  40. 9 | %empty
  41.  
  42. 10 Type: BOOL
  43. 11 | INT
  44. 12 | DOUBLE
  45.  
  46. 13 MethodHeader: AuxMethodHeaderG ID LPAR AuxMethodHeaderO RPAR
  47.  
  48. 14 AuxMethodHeaderG: Type
  49. 15 | VOID
  50.  
  51. 16 AuxMethodHeaderO: FormalParams
  52. 17 | %empty
  53.  
  54. 18 FormalParams: Type ID AuxFormalParamsR
  55. 19 | STRING LSQ RSQ ID
  56.  
  57. 20 AuxFormalParamsR: COMMA Type ID AuxFieldDeclR
  58. 21 | %empty
  59.  
  60. 22 MethodBody: LBRACE AuxMethodBodyR
  61.  
  62. 23 AuxMethodBodyR: Statement AuxMethodBodyR
  63. 24 | VarDecl AuxMethodBodyR
  64. 25 | %empty
  65.  
  66. 26 VarDecl: Type ID AuxVarDeclR SEMICOLON
  67.  
  68. 27 AuxVarDeclR: COMMA ID AuxVarDeclR
  69. 28 | %empty
  70.  
  71. 29 Statement: LBRACE AuxStatementR RBRACE
  72. 30 | IF LPAR Expr RPAR Statement AuxElseStatementO
  73. 31 | WHILE LPAR Expr RPAR Statement
  74. 32 | RETURN AuxExprO SEMICOLON
  75. 33 | AuxStatO SEMICOLON
  76. 34 | PRINT LPAR AuxExprStrlitG RPAR SEMICOLON
  77.  
  78. 35 AuxStatementR: Statement AuxStatementR
  79. 36 | %empty
  80.  
  81. 37 AuxElseStatementO: ELSE Statement
  82. 38 | %empty
  83.  
  84. 39 AuxExprO: Expr
  85. 40 | %empty
  86.  
  87. 41 AuxStatO: AuxMethodInvAssParseG
  88. 42 | %empty
  89.  
  90. 43 AuxMethodInvAssParseG: MethodInvocation
  91. 44 | Assignment
  92. 45 | ParseArgs
  93.  
  94. 46 AuxExprStrlitG: Expr
  95. 47 | STRLITY
  96.  
  97. 48 MethodInvocation: ID LPAR AuxMethodInvocationO RPAR
  98.  
  99. 49 AuxMethodInvocationO: Expr AuxCommaExprR
  100.  
  101. 50 AuxCommaExprR: COMMA Expr AuxCommaExprR
  102. 51 | %empty
  103.  
  104. 52 Assignment: ID ASSIGN Expr
  105.  
  106. 53 ParseArgs: PARSEINT LPAR ID LSQ Expr RSQ RPAR
  107.  
  108. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  109. 55 | Assignment
  110. 56 | ParseArgs ID AuxExprO2 INTLIT
  111. 57 | REALLIT
  112. 58 | BOOLLIT
  113.  
  114. 59 AuxExprG: PLUS
  115. 60 | MINUS
  116. 61 | STAR
  117. 62 | DIV
  118. 63 | MOD
  119.  
  120. 64 AuxExprG2: AND
  121. 65 | OR
  122. 66 | XOR
  123. 67 | LSHIFT
  124. 68 | RSHIFT
  125.  
  126. 69 AuxExprG3: EQ
  127. 70 | GE
  128. 71 | GT
  129. 72 | LE
  130. 73 | LT
  131. 74 | NE
  132.  
  133. 75 AuxExprG4: MINUS
  134. 76 | NOT
  135. 77 | PLUS
  136.  
  137. 78 AuxExprO2: DOTLENGTH
  138. 79 | %empty
  139.  
  140.  
  141. Terminals, with rules where they appear
  142.  
  143. $end (0) 0
  144. error (256)
  145. RESERVED (258)
  146. BOOLLIT (259) 58
  147. AND (260) 64
  148. ASSIGN (261) 52
  149. STAR (262) 61
  150. COMMA (263) 8 20 27 50
  151. DIV (264) 62
  152. EQ (265) 69
  153. GE (266) 70
  154. GT (267) 71
  155. LBRACE (268) 1 22 29
  156. LE (269) 72
  157. LPAR (270) 13 30 31 34 48 53 54
  158. LSQ (271) 19 53
  159. LT (272) 73
  160. MINUS (273) 60 75
  161. MOD (274) 63
  162. NE (275) 74
  163. NOT (276) 76
  164. OR (277) 65
  165. PLUS (278) 59 77
  166. RBRACE (279) 1 29
  167. RPAR (280) 13 30 31 34 48 53 54
  168. RSQ (281) 19 53
  169. SEMICOLON (282) 4 7 26 32 33 34
  170. ARROW (283)
  171. LSHIFT (284) 67
  172. RSHIFT (285) 68
  173. XOR (286) 66
  174. BOOL (287) 10
  175. CLASS (288) 1
  176. DOTLENGTH (289) 78
  177. DOUBLE (290) 12
  178. ELSE (291) 37
  179. IF (292) 30
  180. INT (293) 11
  181. PRINT (294) 34
  182. PARSEINT (295) 53
  183. PUBLIC (296) 6 7
  184. RETURN (297) 32
  185. STATIC (298) 6 7
  186. STRING (299) 19
  187. VOID (300) 15
  188. WHILE (301) 31
  189. ID (302) 1 7 8 13 18 19 20 26 27 48 52 53 56
  190. INTLIT (303) 56
  191. REALLIT (304) 57
  192. STRLITY (305) 47
  193.  
  194.  
  195. Nonterminals, with rules where they appear
  196.  
  197. $accept (51)
  198. on left: 0
  199. Program (52)
  200. on left: 1, on right: 0
  201. AuxR (53)
  202. on left: 2 3 4 5, on right: 1 2 3 4
  203. MethodDecl (54)
  204. on left: 6, on right: 2
  205. FieldDecl (55)
  206. on left: 7, on right: 3
  207. AuxFieldDeclR (56)
  208. on left: 8 9, on right: 7 8 20
  209. Type (57)
  210. on left: 10 11 12, on right: 7 14 18 20 26
  211. MethodHeader (58)
  212. on left: 13, on right: 6
  213. AuxMethodHeaderG (59)
  214. on left: 14 15, on right: 13
  215. AuxMethodHeaderO (60)
  216. on left: 16 17, on right: 13
  217. FormalParams (61)
  218. on left: 18 19, on right: 16
  219. AuxFormalParamsR (62)
  220. on left: 20 21, on right: 18
  221. MethodBody (63)
  222. on left: 22, on right: 6
  223. AuxMethodBodyR (64)
  224. on left: 23 24 25, on right: 22 23 24
  225. VarDecl (65)
  226. on left: 26, on right: 24
  227. AuxVarDeclR (66)
  228. on left: 27 28, on right: 26 27
  229. Statement (67)
  230. on left: 29 30 31 32 33 34, on right: 23 30 31 35 37
  231. AuxStatementR (68)
  232. on left: 35 36, on right: 29 35
  233. AuxElseStatementO (69)
  234. on left: 37 38, on right: 30
  235. AuxExprO (70)
  236. on left: 39 40, on right: 32
  237. AuxStatO (71)
  238. on left: 41 42, on right: 33
  239. AuxMethodInvAssParseG (72)
  240. on left: 43 44 45, on right: 41
  241. AuxExprStrlitG (73)
  242. on left: 46 47, on right: 34
  243. MethodInvocation (74)
  244. on left: 48, on right: 43 54
  245. AuxMethodInvocationO (75)
  246. on left: 49, on right: 48
  247. AuxCommaExprR (76)
  248. on left: 50 51, on right: 49 50
  249. Assignment (77)
  250. on left: 52, on right: 44 55
  251. ParseArgs (78)
  252. on left: 53, on right: 45 56
  253. Expr (79)
  254. on left: 54 55 56 57 58, on right: 30 31 39 46 49 50 52 53 54
  255. AuxExprG (80)
  256. on left: 59 60 61 62 63, on right: 54
  257. AuxExprG2 (81)
  258. on left: 64 65 66 67 68, on right: 54
  259. AuxExprG3 (82)
  260. on left: 69 70 71 72 73 74, on right: 54
  261. AuxExprG4 (83)
  262. on left: 75 76 77, on right: 54
  263. AuxExprO2 (84)
  264. on left: 78 79, on right: 56
  265.  
  266.  
  267. State 0
  268.  
  269. 0 $accept: . Program $end
  270.  
  271. CLASS shift, and go to state 1
  272.  
  273. Program go to state 2
  274.  
  275.  
  276. State 1
  277.  
  278. 1 Program: CLASS . ID LBRACE AuxR RBRACE
  279.  
  280. ID shift, and go to state 3
  281.  
  282.  
  283. State 2
  284.  
  285. 0 $accept: Program . $end
  286.  
  287. $end shift, and go to state 4
  288.  
  289.  
  290. State 3
  291.  
  292. 1 Program: CLASS ID . LBRACE AuxR RBRACE
  293.  
  294. LBRACE shift, and go to state 5
  295.  
  296.  
  297. State 4
  298.  
  299. 0 $accept: Program $end .
  300.  
  301. $default accept
  302.  
  303.  
  304. State 5
  305.  
  306. 1 Program: CLASS ID LBRACE . AuxR RBRACE
  307.  
  308. SEMICOLON shift, and go to state 6
  309. PUBLIC shift, and go to state 7
  310.  
  311. $default reduce using rule 5 (AuxR)
  312.  
  313. AuxR go to state 8
  314. MethodDecl go to state 9
  315. FieldDecl go to state 10
  316.  
  317.  
  318. State 6
  319.  
  320. 4 AuxR: SEMICOLON . AuxR
  321.  
  322. SEMICOLON shift, and go to state 6
  323. PUBLIC shift, and go to state 7
  324.  
  325. $default reduce using rule 5 (AuxR)
  326.  
  327. AuxR go to state 11
  328. MethodDecl go to state 9
  329. FieldDecl go to state 10
  330.  
  331.  
  332. State 7
  333.  
  334. 6 MethodDecl: PUBLIC . STATIC MethodHeader MethodBody
  335. 7 FieldDecl: PUBLIC . STATIC Type ID AuxFieldDeclR SEMICOLON
  336.  
  337. STATIC shift, and go to state 12
  338.  
  339.  
  340. State 8
  341.  
  342. 1 Program: CLASS ID LBRACE AuxR . RBRACE
  343.  
  344. RBRACE shift, and go to state 13
  345.  
  346.  
  347. State 9
  348.  
  349. 2 AuxR: MethodDecl . AuxR
  350.  
  351. SEMICOLON shift, and go to state 6
  352. PUBLIC shift, and go to state 7
  353.  
  354. $default reduce using rule 5 (AuxR)
  355.  
  356. AuxR go to state 14
  357. MethodDecl go to state 9
  358. FieldDecl go to state 10
  359.  
  360.  
  361. State 10
  362.  
  363. 3 AuxR: FieldDecl . AuxR
  364.  
  365. SEMICOLON shift, and go to state 6
  366. PUBLIC shift, and go to state 7
  367.  
  368. $default reduce using rule 5 (AuxR)
  369.  
  370. AuxR go to state 15
  371. MethodDecl go to state 9
  372. FieldDecl go to state 10
  373.  
  374.  
  375. State 11
  376.  
  377. 4 AuxR: SEMICOLON AuxR .
  378.  
  379. $default reduce using rule 4 (AuxR)
  380.  
  381.  
  382. State 12
  383.  
  384. 6 MethodDecl: PUBLIC STATIC . MethodHeader MethodBody
  385. 7 FieldDecl: PUBLIC STATIC . Type ID AuxFieldDeclR SEMICOLON
  386.  
  387. BOOL shift, and go to state 16
  388. DOUBLE shift, and go to state 17
  389. INT shift, and go to state 18
  390. VOID shift, and go to state 19
  391.  
  392. Type go to state 20
  393. MethodHeader go to state 21
  394. AuxMethodHeaderG go to state 22
  395.  
  396.  
  397. State 13
  398.  
  399. 1 Program: CLASS ID LBRACE AuxR RBRACE .
  400.  
  401. $default reduce using rule 1 (Program)
  402.  
  403.  
  404. State 14
  405.  
  406. 2 AuxR: MethodDecl AuxR .
  407.  
  408. $default reduce using rule 2 (AuxR)
  409.  
  410.  
  411. State 15
  412.  
  413. 3 AuxR: FieldDecl AuxR .
  414.  
  415. $default reduce using rule 3 (AuxR)
  416.  
  417.  
  418. State 16
  419.  
  420. 10 Type: BOOL .
  421.  
  422. $default reduce using rule 10 (Type)
  423.  
  424.  
  425. State 17
  426.  
  427. 12 Type: DOUBLE .
  428.  
  429. $default reduce using rule 12 (Type)
  430.  
  431.  
  432. State 18
  433.  
  434. 11 Type: INT .
  435.  
  436. $default reduce using rule 11 (Type)
  437.  
  438.  
  439. State 19
  440.  
  441. 15 AuxMethodHeaderG: VOID .
  442.  
  443. $default reduce using rule 15 (AuxMethodHeaderG)
  444.  
  445.  
  446. State 20
  447.  
  448. 7 FieldDecl: PUBLIC STATIC Type . ID AuxFieldDeclR SEMICOLON
  449. 14 AuxMethodHeaderG: Type .
  450.  
  451. ID shift, and go to state 23
  452.  
  453. ID [reduce using rule 14 (AuxMethodHeaderG)]
  454.  
  455.  
  456. State 21
  457.  
  458. 6 MethodDecl: PUBLIC STATIC MethodHeader . MethodBody
  459.  
  460. LBRACE shift, and go to state 24
  461.  
  462. MethodBody go to state 25
  463.  
  464.  
  465. State 22
  466.  
  467. 13 MethodHeader: AuxMethodHeaderG . ID LPAR AuxMethodHeaderO RPAR
  468.  
  469. ID shift, and go to state 26
  470.  
  471.  
  472. State 23
  473.  
  474. 7 FieldDecl: PUBLIC STATIC Type ID . AuxFieldDeclR SEMICOLON
  475.  
  476. COMMA shift, and go to state 27
  477.  
  478. $default reduce using rule 9 (AuxFieldDeclR)
  479.  
  480. AuxFieldDeclR go to state 28
  481.  
  482.  
  483. State 24
  484.  
  485. 22 MethodBody: LBRACE . AuxMethodBodyR
  486.  
  487. LBRACE shift, and go to state 29
  488. BOOL shift, and go to state 16
  489. DOUBLE shift, and go to state 17
  490. IF shift, and go to state 30
  491. INT shift, and go to state 18
  492. PRINT shift, and go to state 31
  493. PARSEINT shift, and go to state 32
  494. RETURN shift, and go to state 33
  495. WHILE shift, and go to state 34
  496. ID shift, and go to state 35
  497.  
  498. SEMICOLON reduce using rule 25 (AuxMethodBodyR)
  499. SEMICOLON [reduce using rule 42 (AuxStatO)]
  500. $default reduce using rule 25 (AuxMethodBodyR)
  501.  
  502. Type go to state 36
  503. AuxMethodBodyR go to state 37
  504. VarDecl go to state 38
  505. Statement go to state 39
  506. AuxStatO go to state 40
  507. AuxMethodInvAssParseG go to state 41
  508. MethodInvocation go to state 42
  509. Assignment go to state 43
  510. ParseArgs go to state 44
  511.  
  512.  
  513. State 25
  514.  
  515. 6 MethodDecl: PUBLIC STATIC MethodHeader MethodBody .
  516.  
  517. $default reduce using rule 6 (MethodDecl)
  518.  
  519.  
  520. State 26
  521.  
  522. 13 MethodHeader: AuxMethodHeaderG ID . LPAR AuxMethodHeaderO RPAR
  523.  
  524. LPAR shift, and go to state 45
  525.  
  526.  
  527. State 27
  528.  
  529. 8 AuxFieldDeclR: COMMA . ID AuxFieldDeclR
  530.  
  531. ID shift, and go to state 46
  532.  
  533.  
  534. State 28
  535.  
  536. 7 FieldDecl: PUBLIC STATIC Type ID AuxFieldDeclR . SEMICOLON
  537.  
  538. SEMICOLON shift, and go to state 47
  539.  
  540.  
  541. State 29
  542.  
  543. 29 Statement: LBRACE . AuxStatementR RBRACE
  544.  
  545. LBRACE shift, and go to state 29
  546. IF shift, and go to state 30
  547. PRINT shift, and go to state 31
  548. PARSEINT shift, and go to state 32
  549. RETURN shift, and go to state 33
  550. WHILE shift, and go to state 34
  551. ID shift, and go to state 35
  552.  
  553. SEMICOLON reduce using rule 42 (AuxStatO)
  554. $default reduce using rule 36 (AuxStatementR)
  555.  
  556. Statement go to state 48
  557. AuxStatementR go to state 49
  558. AuxStatO go to state 40
  559. AuxMethodInvAssParseG go to state 41
  560. MethodInvocation go to state 42
  561. Assignment go to state 43
  562. ParseArgs go to state 44
  563.  
  564.  
  565. State 30
  566.  
  567. 30 Statement: IF . LPAR Expr RPAR Statement AuxElseStatementO
  568.  
  569. LPAR shift, and go to state 50
  570.  
  571.  
  572. State 31
  573.  
  574. 34 Statement: PRINT . LPAR AuxExprStrlitG RPAR SEMICOLON
  575.  
  576. LPAR shift, and go to state 51
  577.  
  578.  
  579. State 32
  580.  
  581. 53 ParseArgs: PARSEINT . LPAR ID LSQ Expr RSQ RPAR
  582.  
  583. LPAR shift, and go to state 52
  584.  
  585.  
  586. State 33
  587.  
  588. 32 Statement: RETURN . AuxExprO SEMICOLON
  589.  
  590. BOOLLIT shift, and go to state 53
  591. PARSEINT shift, and go to state 32
  592. ID shift, and go to state 54
  593. REALLIT shift, and go to state 55
  594.  
  595. $default reduce using rule 40 (AuxExprO)
  596.  
  597. AuxExprO go to state 56
  598. Assignment go to state 57
  599. ParseArgs go to state 58
  600. Expr go to state 59
  601.  
  602.  
  603. State 34
  604.  
  605. 31 Statement: WHILE . LPAR Expr RPAR Statement
  606.  
  607. LPAR shift, and go to state 60
  608.  
  609.  
  610. State 35
  611.  
  612. 48 MethodInvocation: ID . LPAR AuxMethodInvocationO RPAR
  613. 52 Assignment: ID . ASSIGN Expr
  614.  
  615. ASSIGN shift, and go to state 61
  616. LPAR shift, and go to state 62
  617.  
  618.  
  619. State 36
  620.  
  621. 26 VarDecl: Type . ID AuxVarDeclR SEMICOLON
  622.  
  623. ID shift, and go to state 63
  624.  
  625.  
  626. State 37
  627.  
  628. 22 MethodBody: LBRACE AuxMethodBodyR .
  629.  
  630. $default reduce using rule 22 (MethodBody)
  631.  
  632.  
  633. State 38
  634.  
  635. 24 AuxMethodBodyR: VarDecl . AuxMethodBodyR
  636.  
  637. LBRACE shift, and go to state 29
  638. BOOL shift, and go to state 16
  639. DOUBLE shift, and go to state 17
  640. IF shift, and go to state 30
  641. INT shift, and go to state 18
  642. PRINT shift, and go to state 31
  643. PARSEINT shift, and go to state 32
  644. RETURN shift, and go to state 33
  645. WHILE shift, and go to state 34
  646. ID shift, and go to state 35
  647.  
  648. SEMICOLON reduce using rule 25 (AuxMethodBodyR)
  649. SEMICOLON [reduce using rule 42 (AuxStatO)]
  650. $default reduce using rule 25 (AuxMethodBodyR)
  651.  
  652. Type go to state 36
  653. AuxMethodBodyR go to state 64
  654. VarDecl go to state 38
  655. Statement go to state 39
  656. AuxStatO go to state 40
  657. AuxMethodInvAssParseG go to state 41
  658. MethodInvocation go to state 42
  659. Assignment go to state 43
  660. ParseArgs go to state 44
  661.  
  662.  
  663. State 39
  664.  
  665. 23 AuxMethodBodyR: Statement . AuxMethodBodyR
  666.  
  667. LBRACE shift, and go to state 29
  668. BOOL shift, and go to state 16
  669. DOUBLE shift, and go to state 17
  670. IF shift, and go to state 30
  671. INT shift, and go to state 18
  672. PRINT shift, and go to state 31
  673. PARSEINT shift, and go to state 32
  674. RETURN shift, and go to state 33
  675. WHILE shift, and go to state 34
  676. ID shift, and go to state 35
  677.  
  678. SEMICOLON reduce using rule 25 (AuxMethodBodyR)
  679. SEMICOLON [reduce using rule 42 (AuxStatO)]
  680. $default reduce using rule 25 (AuxMethodBodyR)
  681.  
  682. Type go to state 36
  683. AuxMethodBodyR go to state 65
  684. VarDecl go to state 38
  685. Statement go to state 39
  686. AuxStatO go to state 40
  687. AuxMethodInvAssParseG go to state 41
  688. MethodInvocation go to state 42
  689. Assignment go to state 43
  690. ParseArgs go to state 44
  691.  
  692.  
  693. State 40
  694.  
  695. 33 Statement: AuxStatO . SEMICOLON
  696.  
  697. SEMICOLON shift, and go to state 66
  698.  
  699.  
  700. State 41
  701.  
  702. 41 AuxStatO: AuxMethodInvAssParseG .
  703.  
  704. $default reduce using rule 41 (AuxStatO)
  705.  
  706.  
  707. State 42
  708.  
  709. 43 AuxMethodInvAssParseG: MethodInvocation .
  710.  
  711. $default reduce using rule 43 (AuxMethodInvAssParseG)
  712.  
  713.  
  714. State 43
  715.  
  716. 44 AuxMethodInvAssParseG: Assignment .
  717.  
  718. $default reduce using rule 44 (AuxMethodInvAssParseG)
  719.  
  720.  
  721. State 44
  722.  
  723. 45 AuxMethodInvAssParseG: ParseArgs .
  724.  
  725. $default reduce using rule 45 (AuxMethodInvAssParseG)
  726.  
  727.  
  728. State 45
  729.  
  730. 13 MethodHeader: AuxMethodHeaderG ID LPAR . AuxMethodHeaderO RPAR
  731.  
  732. BOOL shift, and go to state 16
  733. DOUBLE shift, and go to state 17
  734. INT shift, and go to state 18
  735. STRING shift, and go to state 67
  736.  
  737. $default reduce using rule 17 (AuxMethodHeaderO)
  738.  
  739. Type go to state 68
  740. AuxMethodHeaderO go to state 69
  741. FormalParams go to state 70
  742.  
  743.  
  744. State 46
  745.  
  746. 8 AuxFieldDeclR: COMMA ID . AuxFieldDeclR
  747.  
  748. COMMA shift, and go to state 27
  749.  
  750. $default reduce using rule 9 (AuxFieldDeclR)
  751.  
  752. AuxFieldDeclR go to state 71
  753.  
  754.  
  755. State 47
  756.  
  757. 7 FieldDecl: PUBLIC STATIC Type ID AuxFieldDeclR SEMICOLON .
  758.  
  759. $default reduce using rule 7 (FieldDecl)
  760.  
  761.  
  762. State 48
  763.  
  764. 35 AuxStatementR: Statement . AuxStatementR
  765.  
  766. LBRACE shift, and go to state 29
  767. IF shift, and go to state 30
  768. PRINT shift, and go to state 31
  769. PARSEINT shift, and go to state 32
  770. RETURN shift, and go to state 33
  771. WHILE shift, and go to state 34
  772. ID shift, and go to state 35
  773.  
  774. SEMICOLON reduce using rule 42 (AuxStatO)
  775. $default reduce using rule 36 (AuxStatementR)
  776.  
  777. Statement go to state 48
  778. AuxStatementR go to state 72
  779. AuxStatO go to state 40
  780. AuxMethodInvAssParseG go to state 41
  781. MethodInvocation go to state 42
  782. Assignment go to state 43
  783. ParseArgs go to state 44
  784.  
  785.  
  786. State 49
  787.  
  788. 29 Statement: LBRACE AuxStatementR . RBRACE
  789.  
  790. RBRACE shift, and go to state 73
  791.  
  792.  
  793. State 50
  794.  
  795. 30 Statement: IF LPAR . Expr RPAR Statement AuxElseStatementO
  796.  
  797. BOOLLIT shift, and go to state 53
  798. PARSEINT shift, and go to state 32
  799. ID shift, and go to state 54
  800. REALLIT shift, and go to state 55
  801.  
  802. Assignment go to state 57
  803. ParseArgs go to state 58
  804. Expr go to state 74
  805.  
  806.  
  807. State 51
  808.  
  809. 34 Statement: PRINT LPAR . AuxExprStrlitG RPAR SEMICOLON
  810.  
  811. BOOLLIT shift, and go to state 53
  812. PARSEINT shift, and go to state 32
  813. ID shift, and go to state 54
  814. REALLIT shift, and go to state 55
  815. STRLITY shift, and go to state 75
  816.  
  817. AuxExprStrlitG go to state 76
  818. Assignment go to state 57
  819. ParseArgs go to state 58
  820. Expr go to state 77
  821.  
  822.  
  823. State 52
  824.  
  825. 53 ParseArgs: PARSEINT LPAR . ID LSQ Expr RSQ RPAR
  826.  
  827. ID shift, and go to state 78
  828.  
  829.  
  830. State 53
  831.  
  832. 58 Expr: BOOLLIT .
  833.  
  834. $default reduce using rule 58 (Expr)
  835.  
  836.  
  837. State 54
  838.  
  839. 52 Assignment: ID . ASSIGN Expr
  840.  
  841. ASSIGN shift, and go to state 61
  842.  
  843.  
  844. State 55
  845.  
  846. 57 Expr: REALLIT .
  847.  
  848. $default reduce using rule 57 (Expr)
  849.  
  850.  
  851. State 56
  852.  
  853. 32 Statement: RETURN AuxExprO . SEMICOLON
  854.  
  855. SEMICOLON shift, and go to state 79
  856.  
  857.  
  858. State 57
  859.  
  860. 55 Expr: Assignment .
  861.  
  862. $default reduce using rule 55 (Expr)
  863.  
  864.  
  865. State 58
  866.  
  867. 56 Expr: ParseArgs . ID AuxExprO2 INTLIT
  868.  
  869. ID shift, and go to state 80
  870.  
  871.  
  872. State 59
  873.  
  874. 39 AuxExprO: Expr .
  875. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  876.  
  877. STAR shift, and go to state 81
  878. DIV shift, and go to state 82
  879. MINUS shift, and go to state 83
  880. MOD shift, and go to state 84
  881. PLUS shift, and go to state 85
  882.  
  883. $default reduce using rule 39 (AuxExprO)
  884.  
  885. AuxExprG go to state 86
  886.  
  887.  
  888. State 60
  889.  
  890. 31 Statement: WHILE LPAR . Expr RPAR Statement
  891.  
  892. BOOLLIT shift, and go to state 53
  893. PARSEINT shift, and go to state 32
  894. ID shift, and go to state 54
  895. REALLIT shift, and go to state 55
  896.  
  897. Assignment go to state 57
  898. ParseArgs go to state 58
  899. Expr go to state 87
  900.  
  901.  
  902. State 61
  903.  
  904. 52 Assignment: ID ASSIGN . Expr
  905.  
  906. BOOLLIT shift, and go to state 53
  907. PARSEINT shift, and go to state 32
  908. ID shift, and go to state 54
  909. REALLIT shift, and go to state 55
  910.  
  911. Assignment go to state 57
  912. ParseArgs go to state 58
  913. Expr go to state 88
  914.  
  915.  
  916. State 62
  917.  
  918. 48 MethodInvocation: ID LPAR . AuxMethodInvocationO RPAR
  919.  
  920. BOOLLIT shift, and go to state 53
  921. PARSEINT shift, and go to state 32
  922. ID shift, and go to state 54
  923. REALLIT shift, and go to state 55
  924.  
  925. AuxMethodInvocationO go to state 89
  926. Assignment go to state 57
  927. ParseArgs go to state 58
  928. Expr go to state 90
  929.  
  930.  
  931. State 63
  932.  
  933. 26 VarDecl: Type ID . AuxVarDeclR SEMICOLON
  934.  
  935. COMMA shift, and go to state 91
  936.  
  937. $default reduce using rule 28 (AuxVarDeclR)
  938.  
  939. AuxVarDeclR go to state 92
  940.  
  941.  
  942. State 64
  943.  
  944. 24 AuxMethodBodyR: VarDecl AuxMethodBodyR .
  945.  
  946. $default reduce using rule 24 (AuxMethodBodyR)
  947.  
  948.  
  949. State 65
  950.  
  951. 23 AuxMethodBodyR: Statement AuxMethodBodyR .
  952.  
  953. $default reduce using rule 23 (AuxMethodBodyR)
  954.  
  955.  
  956. State 66
  957.  
  958. 33 Statement: AuxStatO SEMICOLON .
  959.  
  960. $default reduce using rule 33 (Statement)
  961.  
  962.  
  963. State 67
  964.  
  965. 19 FormalParams: STRING . LSQ RSQ ID
  966.  
  967. LSQ shift, and go to state 93
  968.  
  969.  
  970. State 68
  971.  
  972. 18 FormalParams: Type . ID AuxFormalParamsR
  973.  
  974. ID shift, and go to state 94
  975.  
  976.  
  977. State 69
  978.  
  979. 13 MethodHeader: AuxMethodHeaderG ID LPAR AuxMethodHeaderO . RPAR
  980.  
  981. RPAR shift, and go to state 95
  982.  
  983.  
  984. State 70
  985.  
  986. 16 AuxMethodHeaderO: FormalParams .
  987.  
  988. $default reduce using rule 16 (AuxMethodHeaderO)
  989.  
  990.  
  991. State 71
  992.  
  993. 8 AuxFieldDeclR: COMMA ID AuxFieldDeclR .
  994.  
  995. $default reduce using rule 8 (AuxFieldDeclR)
  996.  
  997.  
  998. State 72
  999.  
  1000. 35 AuxStatementR: Statement AuxStatementR .
  1001.  
  1002. $default reduce using rule 35 (AuxStatementR)
  1003.  
  1004.  
  1005. State 73
  1006.  
  1007. 29 Statement: LBRACE AuxStatementR RBRACE .
  1008.  
  1009. $default reduce using rule 29 (Statement)
  1010.  
  1011.  
  1012. State 74
  1013.  
  1014. 30 Statement: IF LPAR Expr . RPAR Statement AuxElseStatementO
  1015. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1016.  
  1017. STAR shift, and go to state 81
  1018. DIV shift, and go to state 82
  1019. MINUS shift, and go to state 83
  1020. MOD shift, and go to state 84
  1021. PLUS shift, and go to state 85
  1022. RPAR shift, and go to state 96
  1023.  
  1024. AuxExprG go to state 86
  1025.  
  1026.  
  1027. State 75
  1028.  
  1029. 47 AuxExprStrlitG: STRLITY .
  1030.  
  1031. $default reduce using rule 47 (AuxExprStrlitG)
  1032.  
  1033.  
  1034. State 76
  1035.  
  1036. 34 Statement: PRINT LPAR AuxExprStrlitG . RPAR SEMICOLON
  1037.  
  1038. RPAR shift, and go to state 97
  1039.  
  1040.  
  1041. State 77
  1042.  
  1043. 46 AuxExprStrlitG: Expr .
  1044. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1045.  
  1046. STAR shift, and go to state 81
  1047. DIV shift, and go to state 82
  1048. MINUS shift, and go to state 83
  1049. MOD shift, and go to state 84
  1050. PLUS shift, and go to state 85
  1051.  
  1052. $default reduce using rule 46 (AuxExprStrlitG)
  1053.  
  1054. AuxExprG go to state 86
  1055.  
  1056.  
  1057. State 78
  1058.  
  1059. 53 ParseArgs: PARSEINT LPAR ID . LSQ Expr RSQ RPAR
  1060.  
  1061. LSQ shift, and go to state 98
  1062.  
  1063.  
  1064. State 79
  1065.  
  1066. 32 Statement: RETURN AuxExprO SEMICOLON .
  1067.  
  1068. $default reduce using rule 32 (Statement)
  1069.  
  1070.  
  1071. State 80
  1072.  
  1073. 56 Expr: ParseArgs ID . AuxExprO2 INTLIT
  1074.  
  1075. DOTLENGTH shift, and go to state 99
  1076.  
  1077. $default reduce using rule 79 (AuxExprO2)
  1078.  
  1079. AuxExprO2 go to state 100
  1080.  
  1081.  
  1082. State 81
  1083.  
  1084. 61 AuxExprG: STAR .
  1085.  
  1086. $default reduce using rule 61 (AuxExprG)
  1087.  
  1088.  
  1089. State 82
  1090.  
  1091. 62 AuxExprG: DIV .
  1092.  
  1093. $default reduce using rule 62 (AuxExprG)
  1094.  
  1095.  
  1096. State 83
  1097.  
  1098. 60 AuxExprG: MINUS .
  1099.  
  1100. $default reduce using rule 60 (AuxExprG)
  1101.  
  1102.  
  1103. State 84
  1104.  
  1105. 63 AuxExprG: MOD .
  1106.  
  1107. $default reduce using rule 63 (AuxExprG)
  1108.  
  1109.  
  1110. State 85
  1111.  
  1112. 59 AuxExprG: PLUS .
  1113.  
  1114. $default reduce using rule 59 (AuxExprG)
  1115.  
  1116.  
  1117. State 86
  1118.  
  1119. 54 Expr: Expr AuxExprG . Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1120.  
  1121. BOOLLIT shift, and go to state 53
  1122. PARSEINT shift, and go to state 32
  1123. ID shift, and go to state 54
  1124. REALLIT shift, and go to state 55
  1125.  
  1126. Assignment go to state 57
  1127. ParseArgs go to state 58
  1128. Expr go to state 101
  1129.  
  1130.  
  1131. State 87
  1132.  
  1133. 31 Statement: WHILE LPAR Expr . RPAR Statement
  1134. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1135.  
  1136. STAR shift, and go to state 81
  1137. DIV shift, and go to state 82
  1138. MINUS shift, and go to state 83
  1139. MOD shift, and go to state 84
  1140. PLUS shift, and go to state 85
  1141. RPAR shift, and go to state 102
  1142.  
  1143. AuxExprG go to state 86
  1144.  
  1145.  
  1146. State 88
  1147.  
  1148. 52 Assignment: ID ASSIGN Expr .
  1149. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1150.  
  1151. STAR shift, and go to state 81
  1152. DIV shift, and go to state 82
  1153. MINUS shift, and go to state 83
  1154. MOD shift, and go to state 84
  1155. PLUS shift, and go to state 85
  1156.  
  1157. $default reduce using rule 52 (Assignment)
  1158.  
  1159. AuxExprG go to state 86
  1160.  
  1161.  
  1162. State 89
  1163.  
  1164. 48 MethodInvocation: ID LPAR AuxMethodInvocationO . RPAR
  1165.  
  1166. RPAR shift, and go to state 103
  1167.  
  1168.  
  1169. State 90
  1170.  
  1171. 49 AuxMethodInvocationO: Expr . AuxCommaExprR
  1172. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1173.  
  1174. STAR shift, and go to state 81
  1175. COMMA shift, and go to state 104
  1176. DIV shift, and go to state 82
  1177. MINUS shift, and go to state 83
  1178. MOD shift, and go to state 84
  1179. PLUS shift, and go to state 85
  1180.  
  1181. $default reduce using rule 51 (AuxCommaExprR)
  1182.  
  1183. AuxCommaExprR go to state 105
  1184. AuxExprG go to state 86
  1185.  
  1186.  
  1187. State 91
  1188.  
  1189. 27 AuxVarDeclR: COMMA . ID AuxVarDeclR
  1190.  
  1191. ID shift, and go to state 106
  1192.  
  1193.  
  1194. State 92
  1195.  
  1196. 26 VarDecl: Type ID AuxVarDeclR . SEMICOLON
  1197.  
  1198. SEMICOLON shift, and go to state 107
  1199.  
  1200.  
  1201. State 93
  1202.  
  1203. 19 FormalParams: STRING LSQ . RSQ ID
  1204.  
  1205. RSQ shift, and go to state 108
  1206.  
  1207.  
  1208. State 94
  1209.  
  1210. 18 FormalParams: Type ID . AuxFormalParamsR
  1211.  
  1212. COMMA shift, and go to state 109
  1213.  
  1214. $default reduce using rule 21 (AuxFormalParamsR)
  1215.  
  1216. AuxFormalParamsR go to state 110
  1217.  
  1218.  
  1219. State 95
  1220.  
  1221. 13 MethodHeader: AuxMethodHeaderG ID LPAR AuxMethodHeaderO RPAR .
  1222.  
  1223. $default reduce using rule 13 (MethodHeader)
  1224.  
  1225.  
  1226. State 96
  1227.  
  1228. 30 Statement: IF LPAR Expr RPAR . Statement AuxElseStatementO
  1229.  
  1230. LBRACE shift, and go to state 29
  1231. IF shift, and go to state 30
  1232. PRINT shift, and go to state 31
  1233. PARSEINT shift, and go to state 32
  1234. RETURN shift, and go to state 33
  1235. WHILE shift, and go to state 34
  1236. ID shift, and go to state 35
  1237.  
  1238. $default reduce using rule 42 (AuxStatO)
  1239.  
  1240. Statement go to state 111
  1241. AuxStatO go to state 40
  1242. AuxMethodInvAssParseG go to state 41
  1243. MethodInvocation go to state 42
  1244. Assignment go to state 43
  1245. ParseArgs go to state 44
  1246.  
  1247.  
  1248. State 97
  1249.  
  1250. 34 Statement: PRINT LPAR AuxExprStrlitG RPAR . SEMICOLON
  1251.  
  1252. SEMICOLON shift, and go to state 112
  1253.  
  1254.  
  1255. State 98
  1256.  
  1257. 53 ParseArgs: PARSEINT LPAR ID LSQ . Expr RSQ RPAR
  1258.  
  1259. BOOLLIT shift, and go to state 53
  1260. PARSEINT shift, and go to state 32
  1261. ID shift, and go to state 54
  1262. REALLIT shift, and go to state 55
  1263.  
  1264. Assignment go to state 57
  1265. ParseArgs go to state 58
  1266. Expr go to state 113
  1267.  
  1268.  
  1269. State 99
  1270.  
  1271. 78 AuxExprO2: DOTLENGTH .
  1272.  
  1273. $default reduce using rule 78 (AuxExprO2)
  1274.  
  1275.  
  1276. State 100
  1277.  
  1278. 56 Expr: ParseArgs ID AuxExprO2 . INTLIT
  1279.  
  1280. INTLIT shift, and go to state 114
  1281.  
  1282.  
  1283. State 101
  1284.  
  1285. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1286. 54 | Expr AuxExprG Expr . Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1287.  
  1288. BOOLLIT shift, and go to state 53
  1289. STAR shift, and go to state 81
  1290. DIV shift, and go to state 82
  1291. MINUS shift, and go to state 83
  1292. MOD shift, and go to state 84
  1293. PLUS shift, and go to state 85
  1294. PARSEINT shift, and go to state 32
  1295. ID shift, and go to state 54
  1296. REALLIT shift, and go to state 55
  1297.  
  1298. Assignment go to state 57
  1299. ParseArgs go to state 58
  1300. Expr go to state 115
  1301. AuxExprG go to state 86
  1302.  
  1303.  
  1304. State 102
  1305.  
  1306. 31 Statement: WHILE LPAR Expr RPAR . Statement
  1307.  
  1308. LBRACE shift, and go to state 29
  1309. IF shift, and go to state 30
  1310. PRINT shift, and go to state 31
  1311. PARSEINT shift, and go to state 32
  1312. RETURN shift, and go to state 33
  1313. WHILE shift, and go to state 34
  1314. ID shift, and go to state 35
  1315.  
  1316. $default reduce using rule 42 (AuxStatO)
  1317.  
  1318. Statement go to state 116
  1319. AuxStatO go to state 40
  1320. AuxMethodInvAssParseG go to state 41
  1321. MethodInvocation go to state 42
  1322. Assignment go to state 43
  1323. ParseArgs go to state 44
  1324.  
  1325.  
  1326. State 103
  1327.  
  1328. 48 MethodInvocation: ID LPAR AuxMethodInvocationO RPAR .
  1329.  
  1330. $default reduce using rule 48 (MethodInvocation)
  1331.  
  1332.  
  1333. State 104
  1334.  
  1335. 50 AuxCommaExprR: COMMA . Expr AuxCommaExprR
  1336.  
  1337. BOOLLIT shift, and go to state 53
  1338. PARSEINT shift, and go to state 32
  1339. ID shift, and go to state 54
  1340. REALLIT shift, and go to state 55
  1341.  
  1342. Assignment go to state 57
  1343. ParseArgs go to state 58
  1344. Expr go to state 117
  1345.  
  1346.  
  1347. State 105
  1348.  
  1349. 49 AuxMethodInvocationO: Expr AuxCommaExprR .
  1350.  
  1351. $default reduce using rule 49 (AuxMethodInvocationO)
  1352.  
  1353.  
  1354. State 106
  1355.  
  1356. 27 AuxVarDeclR: COMMA ID . AuxVarDeclR
  1357.  
  1358. COMMA shift, and go to state 91
  1359.  
  1360. $default reduce using rule 28 (AuxVarDeclR)
  1361.  
  1362. AuxVarDeclR go to state 118
  1363.  
  1364.  
  1365. State 107
  1366.  
  1367. 26 VarDecl: Type ID AuxVarDeclR SEMICOLON .
  1368.  
  1369. $default reduce using rule 26 (VarDecl)
  1370.  
  1371.  
  1372. State 108
  1373.  
  1374. 19 FormalParams: STRING LSQ RSQ . ID
  1375.  
  1376. ID shift, and go to state 119
  1377.  
  1378.  
  1379. State 109
  1380.  
  1381. 20 AuxFormalParamsR: COMMA . Type ID AuxFieldDeclR
  1382.  
  1383. BOOL shift, and go to state 16
  1384. DOUBLE shift, and go to state 17
  1385. INT shift, and go to state 18
  1386.  
  1387. Type go to state 120
  1388.  
  1389.  
  1390. State 110
  1391.  
  1392. 18 FormalParams: Type ID AuxFormalParamsR .
  1393.  
  1394. $default reduce using rule 18 (FormalParams)
  1395.  
  1396.  
  1397. State 111
  1398.  
  1399. 30 Statement: IF LPAR Expr RPAR Statement . AuxElseStatementO
  1400.  
  1401. ELSE shift, and go to state 121
  1402.  
  1403. ELSE [reduce using rule 38 (AuxElseStatementO)]
  1404. $default reduce using rule 38 (AuxElseStatementO)
  1405.  
  1406. AuxElseStatementO go to state 122
  1407.  
  1408.  
  1409. State 112
  1410.  
  1411. 34 Statement: PRINT LPAR AuxExprStrlitG RPAR SEMICOLON .
  1412.  
  1413. $default reduce using rule 34 (Statement)
  1414.  
  1415.  
  1416. State 113
  1417.  
  1418. 53 ParseArgs: PARSEINT LPAR ID LSQ Expr . RSQ RPAR
  1419. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1420.  
  1421. STAR shift, and go to state 81
  1422. DIV shift, and go to state 82
  1423. MINUS shift, and go to state 83
  1424. MOD shift, and go to state 84
  1425. PLUS shift, and go to state 85
  1426. RSQ shift, and go to state 123
  1427.  
  1428. AuxExprG go to state 86
  1429.  
  1430.  
  1431. State 114
  1432.  
  1433. 56 Expr: ParseArgs ID AuxExprO2 INTLIT .
  1434.  
  1435. $default reduce using rule 56 (Expr)
  1436.  
  1437.  
  1438. State 115
  1439.  
  1440. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1441. 54 | Expr AuxExprG Expr Expr . AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1442.  
  1443. AND shift, and go to state 124
  1444. STAR shift, and go to state 81
  1445. DIV shift, and go to state 82
  1446. MINUS shift, and go to state 83
  1447. MOD shift, and go to state 84
  1448. OR shift, and go to state 125
  1449. PLUS shift, and go to state 85
  1450. LSHIFT shift, and go to state 126
  1451. RSHIFT shift, and go to state 127
  1452. XOR shift, and go to state 128
  1453.  
  1454. AuxExprG go to state 86
  1455. AuxExprG2 go to state 129
  1456.  
  1457.  
  1458. State 116
  1459.  
  1460. 31 Statement: WHILE LPAR Expr RPAR Statement .
  1461.  
  1462. $default reduce using rule 31 (Statement)
  1463.  
  1464.  
  1465. State 117
  1466.  
  1467. 50 AuxCommaExprR: COMMA Expr . AuxCommaExprR
  1468. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1469.  
  1470. STAR shift, and go to state 81
  1471. COMMA shift, and go to state 104
  1472. DIV shift, and go to state 82
  1473. MINUS shift, and go to state 83
  1474. MOD shift, and go to state 84
  1475. PLUS shift, and go to state 85
  1476.  
  1477. $default reduce using rule 51 (AuxCommaExprR)
  1478.  
  1479. AuxCommaExprR go to state 130
  1480. AuxExprG go to state 86
  1481.  
  1482.  
  1483. State 118
  1484.  
  1485. 27 AuxVarDeclR: COMMA ID AuxVarDeclR .
  1486.  
  1487. $default reduce using rule 27 (AuxVarDeclR)
  1488.  
  1489.  
  1490. State 119
  1491.  
  1492. 19 FormalParams: STRING LSQ RSQ ID .
  1493.  
  1494. $default reduce using rule 19 (FormalParams)
  1495.  
  1496.  
  1497. State 120
  1498.  
  1499. 20 AuxFormalParamsR: COMMA Type . ID AuxFieldDeclR
  1500.  
  1501. ID shift, and go to state 131
  1502.  
  1503.  
  1504. State 121
  1505.  
  1506. 37 AuxElseStatementO: ELSE . Statement
  1507.  
  1508. LBRACE shift, and go to state 29
  1509. IF shift, and go to state 30
  1510. PRINT shift, and go to state 31
  1511. PARSEINT shift, and go to state 32
  1512. RETURN shift, and go to state 33
  1513. WHILE shift, and go to state 34
  1514. ID shift, and go to state 35
  1515.  
  1516. $default reduce using rule 42 (AuxStatO)
  1517.  
  1518. Statement go to state 132
  1519. AuxStatO go to state 40
  1520. AuxMethodInvAssParseG go to state 41
  1521. MethodInvocation go to state 42
  1522. Assignment go to state 43
  1523. ParseArgs go to state 44
  1524.  
  1525.  
  1526. State 122
  1527.  
  1528. 30 Statement: IF LPAR Expr RPAR Statement AuxElseStatementO .
  1529.  
  1530. $default reduce using rule 30 (Statement)
  1531.  
  1532.  
  1533. State 123
  1534.  
  1535. 53 ParseArgs: PARSEINT LPAR ID LSQ Expr RSQ . RPAR
  1536.  
  1537. RPAR shift, and go to state 133
  1538.  
  1539.  
  1540. State 124
  1541.  
  1542. 64 AuxExprG2: AND .
  1543.  
  1544. $default reduce using rule 64 (AuxExprG2)
  1545.  
  1546.  
  1547. State 125
  1548.  
  1549. 65 AuxExprG2: OR .
  1550.  
  1551. $default reduce using rule 65 (AuxExprG2)
  1552.  
  1553.  
  1554. State 126
  1555.  
  1556. 67 AuxExprG2: LSHIFT .
  1557.  
  1558. $default reduce using rule 67 (AuxExprG2)
  1559.  
  1560.  
  1561. State 127
  1562.  
  1563. 68 AuxExprG2: RSHIFT .
  1564.  
  1565. $default reduce using rule 68 (AuxExprG2)
  1566.  
  1567.  
  1568. State 128
  1569.  
  1570. 66 AuxExprG2: XOR .
  1571.  
  1572. $default reduce using rule 66 (AuxExprG2)
  1573.  
  1574.  
  1575. State 129
  1576.  
  1577. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 . Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1578.  
  1579. BOOLLIT shift, and go to state 53
  1580. PARSEINT shift, and go to state 32
  1581. ID shift, and go to state 54
  1582. REALLIT shift, and go to state 55
  1583.  
  1584. Assignment go to state 57
  1585. ParseArgs go to state 58
  1586. Expr go to state 134
  1587.  
  1588.  
  1589. State 130
  1590.  
  1591. 50 AuxCommaExprR: COMMA Expr AuxCommaExprR .
  1592.  
  1593. $default reduce using rule 50 (AuxCommaExprR)
  1594.  
  1595.  
  1596. State 131
  1597.  
  1598. 20 AuxFormalParamsR: COMMA Type ID . AuxFieldDeclR
  1599.  
  1600. COMMA shift, and go to state 27
  1601.  
  1602. $default reduce using rule 9 (AuxFieldDeclR)
  1603.  
  1604. AuxFieldDeclR go to state 135
  1605.  
  1606.  
  1607. State 132
  1608.  
  1609. 37 AuxElseStatementO: ELSE Statement .
  1610.  
  1611. $default reduce using rule 37 (AuxElseStatementO)
  1612.  
  1613.  
  1614. State 133
  1615.  
  1616. 53 ParseArgs: PARSEINT LPAR ID LSQ Expr RSQ RPAR .
  1617.  
  1618. $default reduce using rule 53 (ParseArgs)
  1619.  
  1620.  
  1621. State 134
  1622.  
  1623. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1624. 54 | Expr AuxExprG Expr Expr AuxExprG2 Expr . Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1625.  
  1626. BOOLLIT shift, and go to state 53
  1627. STAR shift, and go to state 81
  1628. DIV shift, and go to state 82
  1629. MINUS shift, and go to state 83
  1630. MOD shift, and go to state 84
  1631. PLUS shift, and go to state 85
  1632. PARSEINT shift, and go to state 32
  1633. ID shift, and go to state 54
  1634. REALLIT shift, and go to state 55
  1635.  
  1636. Assignment go to state 57
  1637. ParseArgs go to state 58
  1638. Expr go to state 136
  1639. AuxExprG go to state 86
  1640.  
  1641.  
  1642. State 135
  1643.  
  1644. 20 AuxFormalParamsR: COMMA Type ID AuxFieldDeclR .
  1645.  
  1646. $default reduce using rule 20 (AuxFormalParamsR)
  1647.  
  1648.  
  1649. State 136
  1650.  
  1651. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1652. 54 | Expr AuxExprG Expr Expr AuxExprG2 Expr Expr . AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1653.  
  1654. STAR shift, and go to state 81
  1655. DIV shift, and go to state 82
  1656. EQ shift, and go to state 137
  1657. GE shift, and go to state 138
  1658. GT shift, and go to state 139
  1659. LE shift, and go to state 140
  1660. LT shift, and go to state 141
  1661. MINUS shift, and go to state 83
  1662. MOD shift, and go to state 84
  1663. NE shift, and go to state 142
  1664. PLUS shift, and go to state 85
  1665.  
  1666. AuxExprG go to state 86
  1667. AuxExprG3 go to state 143
  1668.  
  1669.  
  1670. State 137
  1671.  
  1672. 69 AuxExprG3: EQ .
  1673.  
  1674. $default reduce using rule 69 (AuxExprG3)
  1675.  
  1676.  
  1677. State 138
  1678.  
  1679. 70 AuxExprG3: GE .
  1680.  
  1681. $default reduce using rule 70 (AuxExprG3)
  1682.  
  1683.  
  1684. State 139
  1685.  
  1686. 71 AuxExprG3: GT .
  1687.  
  1688. $default reduce using rule 71 (AuxExprG3)
  1689.  
  1690.  
  1691. State 140
  1692.  
  1693. 72 AuxExprG3: LE .
  1694.  
  1695. $default reduce using rule 72 (AuxExprG3)
  1696.  
  1697.  
  1698. State 141
  1699.  
  1700. 73 AuxExprG3: LT .
  1701.  
  1702. $default reduce using rule 73 (AuxExprG3)
  1703.  
  1704.  
  1705. State 142
  1706.  
  1707. 74 AuxExprG3: NE .
  1708.  
  1709. $default reduce using rule 74 (AuxExprG3)
  1710.  
  1711.  
  1712. State 143
  1713.  
  1714. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 . Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1715.  
  1716. BOOLLIT shift, and go to state 53
  1717. PARSEINT shift, and go to state 32
  1718. ID shift, and go to state 54
  1719. REALLIT shift, and go to state 55
  1720.  
  1721. Assignment go to state 57
  1722. ParseArgs go to state 58
  1723. Expr go to state 144
  1724.  
  1725.  
  1726. State 144
  1727.  
  1728. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1729. 54 | Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr . AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1730.  
  1731. STAR shift, and go to state 81
  1732. DIV shift, and go to state 82
  1733. MINUS shift, and go to state 145
  1734. MOD shift, and go to state 84
  1735. NOT shift, and go to state 146
  1736. PLUS shift, and go to state 147
  1737.  
  1738. AuxExprG go to state 86
  1739. AuxExprG4 go to state 148
  1740.  
  1741.  
  1742. State 145
  1743.  
  1744. 60 AuxExprG: MINUS .
  1745. 75 AuxExprG4: MINUS .
  1746.  
  1747. BOOLLIT reduce using rule 60 (AuxExprG)
  1748. BOOLLIT [reduce using rule 75 (AuxExprG4)]
  1749. PARSEINT reduce using rule 60 (AuxExprG)
  1750. PARSEINT [reduce using rule 75 (AuxExprG4)]
  1751. ID reduce using rule 60 (AuxExprG)
  1752. ID [reduce using rule 75 (AuxExprG4)]
  1753. REALLIT reduce using rule 60 (AuxExprG)
  1754. REALLIT [reduce using rule 75 (AuxExprG4)]
  1755. $default reduce using rule 60 (AuxExprG)
  1756.  
  1757.  
  1758. State 146
  1759.  
  1760. 76 AuxExprG4: NOT .
  1761.  
  1762. $default reduce using rule 76 (AuxExprG4)
  1763.  
  1764.  
  1765. State 147
  1766.  
  1767. 59 AuxExprG: PLUS .
  1768. 77 AuxExprG4: PLUS .
  1769.  
  1770. BOOLLIT reduce using rule 59 (AuxExprG)
  1771. BOOLLIT [reduce using rule 77 (AuxExprG4)]
  1772. PARSEINT reduce using rule 59 (AuxExprG)
  1773. PARSEINT [reduce using rule 77 (AuxExprG4)]
  1774. ID reduce using rule 59 (AuxExprG)
  1775. ID [reduce using rule 77 (AuxExprG4)]
  1776. REALLIT reduce using rule 59 (AuxExprG)
  1777. REALLIT [reduce using rule 77 (AuxExprG4)]
  1778. $default reduce using rule 59 (AuxExprG)
  1779.  
  1780.  
  1781. State 148
  1782.  
  1783. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 . Expr LPAR Expr RPAR MethodInvocation
  1784.  
  1785. BOOLLIT shift, and go to state 53
  1786. PARSEINT shift, and go to state 32
  1787. ID shift, and go to state 54
  1788. REALLIT shift, and go to state 55
  1789.  
  1790. Assignment go to state 57
  1791. ParseArgs go to state 58
  1792. Expr go to state 149
  1793.  
  1794.  
  1795. State 149
  1796.  
  1797. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1798. 54 | Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr . LPAR Expr RPAR MethodInvocation
  1799.  
  1800. STAR shift, and go to state 81
  1801. DIV shift, and go to state 82
  1802. LPAR shift, and go to state 150
  1803. MINUS shift, and go to state 83
  1804. MOD shift, and go to state 84
  1805. PLUS shift, and go to state 85
  1806.  
  1807. AuxExprG go to state 86
  1808.  
  1809.  
  1810. State 150
  1811.  
  1812. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR . Expr RPAR MethodInvocation
  1813.  
  1814. BOOLLIT shift, and go to state 53
  1815. PARSEINT shift, and go to state 32
  1816. ID shift, and go to state 54
  1817. REALLIT shift, and go to state 55
  1818.  
  1819. Assignment go to state 57
  1820. ParseArgs go to state 58
  1821. Expr go to state 151
  1822.  
  1823.  
  1824. State 151
  1825.  
  1826. 54 Expr: Expr . AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation
  1827. 54 | Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr . RPAR MethodInvocation
  1828.  
  1829. STAR shift, and go to state 81
  1830. DIV shift, and go to state 82
  1831. MINUS shift, and go to state 83
  1832. MOD shift, and go to state 84
  1833. PLUS shift, and go to state 85
  1834. RPAR shift, and go to state 152
  1835.  
  1836. AuxExprG go to state 86
  1837.  
  1838.  
  1839. State 152
  1840.  
  1841. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR . MethodInvocation
  1842.  
  1843. ID shift, and go to state 153
  1844.  
  1845. MethodInvocation go to state 154
  1846.  
  1847.  
  1848. State 153
  1849.  
  1850. 48 MethodInvocation: ID . LPAR AuxMethodInvocationO RPAR
  1851.  
  1852. LPAR shift, and go to state 62
  1853.  
  1854.  
  1855. State 154
  1856.  
  1857. 54 Expr: Expr AuxExprG Expr Expr AuxExprG2 Expr Expr AuxExprG3 Expr AuxExprG4 Expr LPAR Expr RPAR MethodInvocation .
  1858.  
  1859. $default reduce using rule 54 (Expr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement