diff --git a/final_lang/fort.py b/final_lang/fort.py index b252616..befbf52 100644 --- a/final_lang/fort.py +++ b/final_lang/fort.py @@ -108,6 +108,7 @@ tokens = [ 'openParen', 'closedParen', 'string', + 'comment', 'plus', 'minus', 'mul', @@ -169,6 +170,7 @@ t_plus = r'\+' t_minus = r'-' t_mul = r'\*' t_string = r'\'[a-zA-Z0-9 \?\:\t\r\n\f()\[\]\&\!\@\#\$\%\^\-\=\+\/\,]*\'' +t_comment = r'![a-zA-Z0-9 \?\:\t\r\n\f()\[\]\&\!\@\#\$\%\^\-\=\+\/\,]*!' t_or = r'\.or\.' t_and = r'\.and\.' t_not = r'\.not\.' @@ -286,7 +288,8 @@ def p_S(p): | do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do | do then action_21 B action_22 end do | swap Dimensional coma Dimensional - | exit action_23 + | exit action_23 + | comment ''' # Adjust the action to support matrices diff --git a/final_lang/parser.out b/final_lang/parser.out index 9f6080c..497923e 100644 --- a/final_lang/parser.out +++ b/final_lang/parser.out @@ -26,178 +26,180 @@ Rule 20 S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty Rule 21 S -> do then action_21 B action_22 end do Rule 22 S -> swap Dimensional coma Dimensional Rule 23 S -> exit action_23 -Rule 24 Dimensional -> id DimensionsOrEmpty action_1 -Rule 25 DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen -Rule 26 DimensionsOrEmpty -> -Rule 27 ComaEAOrEmpty -> coma EA action_setDim2 -Rule 28 ComaEAOrEmpty -> -Rule 29 RDimensional -> Dimensional action_36 -Rule 30 RDimensional -> RDimensional coma Dimensional action_36 -Rule 31 RDimOrString -> DimOrString -Rule 32 RDimOrString -> RDimOrString coma DimOrString -Rule 33 DimOrString -> Dimensional action_33 -Rule 34 DimOrString -> string action_34 -Rule 35 DimOrString -> endline action_34 -Rule 36 Relif -> openParen EL closedParen action_17 then B -Rule 37 Relif -> Relif elif action_18 openParen EL closedParen action_17 then B -Rule 38 ElseOrEmpty -> else action_19 B -Rule 39 ElseOrEmpty -> -Rule 40 IntOrEmpty -> coma int action_28 -Rule 41 IntOrEmpty -> action_27 -Rule 42 EA -> MultDiv -Rule 43 EA -> EA SumOrSub action_3 MultDiv action_4 -Rule 44 SumOrSub -> plus -Rule 45 SumOrSub -> minus -Rule 46 MultDiv -> EAParens -Rule 47 MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 -Rule 48 MDSymbols -> mul -Rule 49 MDSymbols -> div -Rule 50 EAParens -> EItem -Rule 51 EAParens -> openParen EA closedParen -Rule 52 EL -> AND -Rule 53 EL -> EL or action_10 AND action_9 -Rule 54 AND -> Equality -Rule 55 AND -> AND and action_12 Equality action_11 -Rule 56 Equality -> EItem EQSymbols action_13 EItem action_14 -Rule 57 Equality -> openParen EL closedParen -Rule 58 Equality -> not EL action_15 -Rule 59 EItem -> Dimensional -Rule 60 EItem -> int action_2 -Rule 61 EItem -> rea action_2_rea -Rule 62 EQSymbols -> less -Rule 63 EQSymbols -> more -Rule 64 EQSymbols -> doubleEquals -Rule 65 EQSymbols -> notEquals -Rule 66 EQSymbols -> lessEquals -Rule 67 EQSymbols -> moreEquals -Rule 68 action_addSymbols -> -Rule 69 action_1 -> -Rule 70 action_2 -> -Rule 71 action_2_rea -> -Rule 72 action_3 -> -Rule 73 action_4 -> -Rule 74 action_5 -> -Rule 75 action_6 -> -Rule 76 action_8 -> -Rule 77 action_9 -> -Rule 78 action_10 -> -Rule 79 action_11 -> -Rule 80 action_12 -> -Rule 81 action_13 -> -Rule 82 action_14 -> -Rule 83 action_15 -> -Rule 84 action_16 -> -Rule 85 action_17 -> -Rule 86 action_18 -> -Rule 87 action_19 -> -Rule 88 action_20 -> -Rule 89 action_21 -> -Rule 90 action_22 -> -Rule 91 action_23 -> -Rule 92 action_24 -> -Rule 93 action_25 -> -Rule 94 action_26 -> -Rule 95 action_27 -> -Rule 96 action_28 -> -Rule 97 action_29 -> -Rule 98 action_30 -> -Rule 99 action_31 -> -Rule 100 action_32 -> -Rule 101 action_33 -> -Rule 102 action_34 -> -Rule 103 action_36 -> -Rule 104 action_37 -> -Rule 105 action_38 -> -Rule 106 action_39 -> -Rule 107 action_40 -> -Rule 108 action_41 -> -Rule 109 action_setDim1 -> -Rule 110 action_setDim2 -> +Rule 24 S -> comment +Rule 25 Dimensional -> id DimensionsOrEmpty action_1 +Rule 26 DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen +Rule 27 DimensionsOrEmpty -> +Rule 28 ComaEAOrEmpty -> coma EA action_setDim2 +Rule 29 ComaEAOrEmpty -> +Rule 30 RDimensional -> Dimensional action_36 +Rule 31 RDimensional -> RDimensional coma Dimensional action_36 +Rule 32 RDimOrString -> DimOrString +Rule 33 RDimOrString -> RDimOrString coma DimOrString +Rule 34 DimOrString -> Dimensional action_33 +Rule 35 DimOrString -> string action_34 +Rule 36 DimOrString -> endline action_34 +Rule 37 Relif -> openParen EL closedParen action_17 then B +Rule 38 Relif -> Relif elif action_18 openParen EL closedParen action_17 then B +Rule 39 ElseOrEmpty -> else action_19 B +Rule 40 ElseOrEmpty -> +Rule 41 IntOrEmpty -> coma int action_28 +Rule 42 IntOrEmpty -> action_27 +Rule 43 EA -> MultDiv +Rule 44 EA -> EA SumOrSub action_3 MultDiv action_4 +Rule 45 SumOrSub -> plus +Rule 46 SumOrSub -> minus +Rule 47 MultDiv -> EAParens +Rule 48 MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 +Rule 49 MDSymbols -> mul +Rule 50 MDSymbols -> div +Rule 51 EAParens -> EItem +Rule 52 EAParens -> openParen EA closedParen +Rule 53 EL -> AND +Rule 54 EL -> EL or action_10 AND action_9 +Rule 55 AND -> Equality +Rule 56 AND -> AND and action_12 Equality action_11 +Rule 57 Equality -> EItem EQSymbols action_13 EItem action_14 +Rule 58 Equality -> openParen EL closedParen +Rule 59 Equality -> not EL action_15 +Rule 60 EItem -> Dimensional +Rule 61 EItem -> int action_2 +Rule 62 EItem -> rea action_2_rea +Rule 63 EQSymbols -> less +Rule 64 EQSymbols -> more +Rule 65 EQSymbols -> doubleEquals +Rule 66 EQSymbols -> notEquals +Rule 67 EQSymbols -> lessEquals +Rule 68 EQSymbols -> moreEquals +Rule 69 action_addSymbols -> +Rule 70 action_1 -> +Rule 71 action_2 -> +Rule 72 action_2_rea -> +Rule 73 action_3 -> +Rule 74 action_4 -> +Rule 75 action_5 -> +Rule 76 action_6 -> +Rule 77 action_8 -> +Rule 78 action_9 -> +Rule 79 action_10 -> +Rule 80 action_11 -> +Rule 81 action_12 -> +Rule 82 action_13 -> +Rule 83 action_14 -> +Rule 84 action_15 -> +Rule 85 action_16 -> +Rule 86 action_17 -> +Rule 87 action_18 -> +Rule 88 action_19 -> +Rule 89 action_20 -> +Rule 90 action_21 -> +Rule 91 action_22 -> +Rule 92 action_23 -> +Rule 93 action_24 -> +Rule 94 action_25 -> +Rule 95 action_26 -> +Rule 96 action_27 -> +Rule 97 action_28 -> +Rule 98 action_29 -> +Rule 99 action_30 -> +Rule 100 action_31 -> +Rule 101 action_32 -> +Rule 102 action_33 -> +Rule 103 action_34 -> +Rule 104 action_36 -> +Rule 105 action_37 -> +Rule 106 action_38 -> +Rule 107 action_39 -> +Rule 108 action_40 -> +Rule 109 action_41 -> +Rule 110 action_setDim1 -> +Rule 111 action_setDim2 -> Terminals, with rules where they appear -and : 55 +and : 56 closedBra : 8 9 9 -closedParen : 25 36 37 51 57 -coma : 5 20 22 27 30 32 40 -div : 49 +closedParen : 26 37 38 52 58 +coma : 5 20 22 28 31 33 41 +comment : 24 +div : 50 do : 20 20 21 21 doubleColon : 2 -doubleEquals : 64 -elif : 37 -else : 38 +doubleEquals : 65 +elif : 38 +else : 39 end : 1 11 19 20 21 -endline : 35 +endline : 36 equals : 15 20 error : exit : 23 -id : 1 4 5 11 16 20 24 +id : 1 4 5 11 16 20 25 if : 19 19 -int : 8 9 9 40 60 +int : 8 9 9 41 61 integer : 6 -less : 62 -lessEquals : 66 -minus : 45 -more : 63 -moreEquals : 67 -mul : 48 -not : 58 -notEquals : 65 +less : 63 +lessEquals : 67 +minus : 46 +more : 64 +moreEquals : 68 +mul : 49 +not : 59 +notEquals : 66 openBra : 8 9 9 -openParen : 25 36 37 51 57 -or : 53 +openParen : 26 37 38 52 58 +or : 54 parens : 16 -plus : 44 +plus : 45 print : 18 program : 1 1 -rea : 61 +rea : 62 read : 17 real : 7 -string : 34 +string : 35 subroutine : 11 11 swap : 22 -then : 20 21 36 37 +then : 20 21 37 38 Nonterminals, with rules where they appear -AND : 52 53 55 -B : 1 11 13 20 21 36 37 38 -ComaEAOrEmpty : 25 +AND : 53 54 56 +B : 1 11 13 20 21 37 38 39 +ComaEAOrEmpty : 26 Dim : 2 -DimOrString : 31 32 -Dimensional : 15 22 22 29 30 33 59 -DimensionsOrEmpty : 24 -EA : 15 20 20 25 27 43 51 -EAParens : 46 47 -EItem : 50 56 56 -EL : 36 37 53 57 58 -EQSymbols : 56 +DimOrString : 32 33 +Dimensional : 15 22 22 30 31 34 60 +DimensionsOrEmpty : 25 +EA : 15 20 20 26 28 44 52 +EAParens : 47 48 +EItem : 51 57 57 +EL : 37 38 54 58 59 +EQSymbols : 57 ElseOrEmpty : 19 -Equality : 54 55 +Equality : 55 56 F : 1 11 IntOrEmpty : 20 -MDSymbols : 47 -MultDiv : 42 43 47 -RDimOrString : 18 32 -RDimensional : 17 30 -Relif : 19 37 +MDSymbols : 48 +MultDiv : 43 44 48 +RDimOrString : 18 33 +RDimensional : 17 31 +Relif : 19 38 Rid : 2 5 S : 13 -SumOrSub : 43 +SumOrSub : 44 Tipo : 2 V : 1 2 -action_1 : 24 -action_10 : 53 -action_11 : 55 -action_12 : 55 -action_13 : 56 -action_14 : 56 -action_15 : 58 +action_1 : 25 +action_10 : 54 +action_11 : 56 +action_12 : 56 +action_13 : 57 +action_14 : 57 +action_15 : 59 action_16 : 19 -action_17 : 36 37 -action_18 : 37 -action_19 : 38 -action_2 : 60 +action_17 : 37 38 +action_18 : 38 +action_19 : 39 +action_2 : 61 action_20 : 19 action_21 : 21 action_22 : 21 @@ -205,30 +207,30 @@ action_23 : 23 action_24 : 20 action_25 : 20 action_26 : 20 -action_27 : 41 -action_28 : 40 +action_27 : 42 +action_28 : 41 action_29 : 20 -action_2_rea : 61 -action_3 : 43 +action_2_rea : 62 +action_3 : 44 action_30 : 8 9 action_31 : 9 action_32 : 2 -action_33 : 33 -action_34 : 34 35 -action_36 : 29 30 +action_33 : 34 +action_34 : 35 36 +action_36 : 30 31 action_37 : 1 action_38 : 1 action_39 : 11 -action_4 : 43 +action_4 : 44 action_40 : 11 action_41 : 16 -action_5 : 47 -action_6 : 47 +action_5 : 48 +action_6 : 48 action_8 : 15 -action_9 : 53 +action_9 : 54 action_addSymbols : 2 -action_setDim1 : 25 -action_setDim2 : 27 +action_setDim1 : 26 +action_setDim2 : 28 programa : 0 Parsing method: LALR @@ -251,9 +253,9 @@ state 1 state 2 (1) programa -> program . action_37 id V F action_38 B end program - (104) action_37 -> . + (105) action_37 -> . - id reduce using rule 104 (action_37 -> .) + id reduce using rule 105 (action_37 -> .) action_37 shift and go to state 3 @@ -281,6 +283,7 @@ state 4 do reduce using rule 3 (V -> .) swap reduce using rule 3 (V -> .) exit reduce using rule 3 (V -> .) + comment reduce using rule 3 (V -> .) V shift and go to state 5 @@ -302,6 +305,7 @@ state 5 do reduce using rule 12 (F -> .) swap reduce using rule 12 (F -> .) exit reduce using rule 12 (F -> .) + comment reduce using rule 12 (F -> .) integer shift and go to state 8 real shift and go to state 9 @@ -312,17 +316,18 @@ state 6 (1) programa -> program action_37 id V F . action_38 B end program (11) F -> F . subroutine id action_39 B end subroutine action_40 - (105) action_38 -> . + (106) action_38 -> . subroutine shift and go to state 11 - end reduce using rule 105 (action_38 -> .) - id reduce using rule 105 (action_38 -> .) - read reduce using rule 105 (action_38 -> .) - print reduce using rule 105 (action_38 -> .) - if reduce using rule 105 (action_38 -> .) - do reduce using rule 105 (action_38 -> .) - swap reduce using rule 105 (action_38 -> .) - exit reduce using rule 105 (action_38 -> .) + end reduce using rule 106 (action_38 -> .) + id reduce using rule 106 (action_38 -> .) + read reduce using rule 106 (action_38 -> .) + print reduce using rule 106 (action_38 -> .) + if reduce using rule 106 (action_38 -> .) + do reduce using rule 106 (action_38 -> .) + swap reduce using rule 106 (action_38 -> .) + exit reduce using rule 106 (action_38 -> .) + comment reduce using rule 106 (action_38 -> .) action_38 shift and go to state 10 @@ -368,6 +373,7 @@ state 10 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) B shift and go to state 14 @@ -406,7 +412,8 @@ state 14 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 end shift and go to state 19 id shift and go to state 18 @@ -416,6 +423,7 @@ state 14 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 S shift and go to state 20 Dimensional shift and go to state 21 @@ -423,18 +431,19 @@ state 14 state 15 (11) F -> F subroutine id . action_39 B end subroutine action_40 - (106) action_39 -> . + (107) action_39 -> . - end reduce using rule 106 (action_39 -> .) - id reduce using rule 106 (action_39 -> .) - read reduce using rule 106 (action_39 -> .) - print reduce using rule 106 (action_39 -> .) - if reduce using rule 106 (action_39 -> .) - do reduce using rule 106 (action_39 -> .) - swap reduce using rule 106 (action_39 -> .) - exit reduce using rule 106 (action_39 -> .) + end reduce using rule 107 (action_39 -> .) + id reduce using rule 107 (action_39 -> .) + read reduce using rule 107 (action_39 -> .) + print reduce using rule 107 (action_39 -> .) + if reduce using rule 107 (action_39 -> .) + do reduce using rule 107 (action_39 -> .) + swap reduce using rule 107 (action_39 -> .) + exit reduce using rule 107 (action_39 -> .) + comment reduce using rule 107 (action_39 -> .) - action_39 shift and go to state 28 + action_39 shift and go to state 29 state 16 @@ -442,38 +451,38 @@ state 16 (4) Rid -> . id (5) Rid -> . Rid coma id - id shift and go to state 30 + id shift and go to state 31 - Rid shift and go to state 29 + Rid shift and go to state 30 state 17 (8) Dim -> openBra int . action_30 closedBra (9) Dim -> openBra int . action_30 closedBra openBra int action_31 closedBra - (98) action_30 -> . + (99) action_30 -> . - closedBra reduce using rule 98 (action_30 -> .) + closedBra reduce using rule 99 (action_30 -> .) - action_30 shift and go to state 31 + action_30 shift and go to state 32 state 18 (16) S -> id . parens action_41 - (24) Dimensional -> id . DimensionsOrEmpty action_1 - (25) DimensionsOrEmpty -> . openParen EA action_setDim1 ComaEAOrEmpty closedParen - (26) DimensionsOrEmpty -> . + (25) Dimensional -> id . DimensionsOrEmpty action_1 + (26) DimensionsOrEmpty -> . openParen EA action_setDim1 ComaEAOrEmpty closedParen + (27) DimensionsOrEmpty -> . - parens shift and go to state 32 - openParen shift and go to state 34 - equals reduce using rule 26 (DimensionsOrEmpty -> .) + parens shift and go to state 33 + openParen shift and go to state 35 + equals reduce using rule 27 (DimensionsOrEmpty -> .) - DimensionsOrEmpty shift and go to state 33 + DimensionsOrEmpty shift and go to state 34 state 19 (1) programa -> program action_37 id V F action_38 B end . program - program shift and go to state 35 + program shift and go to state 36 state 20 @@ -488,6 +497,7 @@ state 20 do reduce using rule 13 (B -> B S .) swap reduce using rule 13 (B -> B S .) exit reduce using rule 13 (B -> B S .) + comment reduce using rule 13 (B -> B S .) elif reduce using rule 13 (B -> B S .) else reduce using rule 13 (B -> B S .) @@ -496,86 +506,104 @@ state 21 (15) S -> Dimensional . equals EA action_8 - equals shift and go to state 36 + equals shift and go to state 37 state 22 (17) S -> read . RDimensional - (29) RDimensional -> . Dimensional action_36 - (30) RDimensional -> . RDimensional coma Dimensional action_36 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (30) RDimensional -> . Dimensional action_36 + (31) RDimensional -> . RDimensional coma Dimensional action_36 + (25) Dimensional -> . id DimensionsOrEmpty action_1 - id shift and go to state 39 + id shift and go to state 40 - RDimensional shift and go to state 37 - Dimensional shift and go to state 38 + RDimensional shift and go to state 38 + Dimensional shift and go to state 39 state 23 (18) S -> print . RDimOrString - (31) RDimOrString -> . DimOrString - (32) RDimOrString -> . RDimOrString coma DimOrString - (33) DimOrString -> . Dimensional action_33 - (34) DimOrString -> . string action_34 - (35) DimOrString -> . endline action_34 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (32) RDimOrString -> . DimOrString + (33) RDimOrString -> . RDimOrString coma DimOrString + (34) DimOrString -> . Dimensional action_33 + (35) DimOrString -> . string action_34 + (36) DimOrString -> . endline action_34 + (25) Dimensional -> . id DimensionsOrEmpty action_1 - string shift and go to state 43 - endline shift and go to state 44 - id shift and go to state 39 + string shift and go to state 44 + endline shift and go to state 45 + id shift and go to state 40 - RDimOrString shift and go to state 40 - DimOrString shift and go to state 41 - Dimensional shift and go to state 42 + RDimOrString shift and go to state 41 + DimOrString shift and go to state 42 + Dimensional shift and go to state 43 state 24 (19) S -> if . action_16 Relif ElseOrEmpty end if action_20 - (84) action_16 -> . + (85) action_16 -> . - openParen reduce using rule 84 (action_16 -> .) + openParen reduce using rule 85 (action_16 -> .) - action_16 shift and go to state 45 + action_16 shift and go to state 46 state 25 (20) S -> do . id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do (21) S -> do . then action_21 B action_22 end do - id shift and go to state 46 - then shift and go to state 47 + id shift and go to state 47 + then shift and go to state 48 state 26 (22) S -> swap . Dimensional coma Dimensional - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (25) Dimensional -> . id DimensionsOrEmpty action_1 - id shift and go to state 39 + id shift and go to state 40 - Dimensional shift and go to state 48 + Dimensional shift and go to state 49 state 27 (23) S -> exit . action_23 - (91) action_23 -> . + (92) action_23 -> . - end reduce using rule 91 (action_23 -> .) - id reduce using rule 91 (action_23 -> .) - read reduce using rule 91 (action_23 -> .) - print reduce using rule 91 (action_23 -> .) - if reduce using rule 91 (action_23 -> .) - do reduce using rule 91 (action_23 -> .) - swap reduce using rule 91 (action_23 -> .) - exit reduce using rule 91 (action_23 -> .) - elif reduce using rule 91 (action_23 -> .) - else reduce using rule 91 (action_23 -> .) + end reduce using rule 92 (action_23 -> .) + id reduce using rule 92 (action_23 -> .) + read reduce using rule 92 (action_23 -> .) + print reduce using rule 92 (action_23 -> .) + if reduce using rule 92 (action_23 -> .) + do reduce using rule 92 (action_23 -> .) + swap reduce using rule 92 (action_23 -> .) + exit reduce using rule 92 (action_23 -> .) + comment reduce using rule 92 (action_23 -> .) + elif reduce using rule 92 (action_23 -> .) + else reduce using rule 92 (action_23 -> .) - action_23 shift and go to state 49 + action_23 shift and go to state 50 state 28 + (24) S -> comment . + + end reduce using rule 24 (S -> comment .) + id reduce using rule 24 (S -> comment .) + read reduce using rule 24 (S -> comment .) + print reduce using rule 24 (S -> comment .) + if reduce using rule 24 (S -> comment .) + do reduce using rule 24 (S -> comment .) + swap reduce using rule 24 (S -> comment .) + exit reduce using rule 24 (S -> comment .) + comment reduce using rule 24 (S -> comment .) + elif reduce using rule 24 (S -> comment .) + else reduce using rule 24 (S -> comment .) + + +state 29 + (11) F -> F subroutine id action_39 . B end subroutine action_40 (13) B -> . B S (14) B -> . @@ -588,31 +616,33 @@ state 28 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) - B shift and go to state 50 + B shift and go to state 51 -state 29 +state 30 (2) V -> V Tipo Dim doubleColon Rid . action_addSymbols action_32 (5) Rid -> Rid . coma id - (68) action_addSymbols -> . + (69) action_addSymbols -> . - coma shift and go to state 52 - integer reduce using rule 68 (action_addSymbols -> .) - real reduce using rule 68 (action_addSymbols -> .) - subroutine reduce using rule 68 (action_addSymbols -> .) - end reduce using rule 68 (action_addSymbols -> .) - id reduce using rule 68 (action_addSymbols -> .) - read reduce using rule 68 (action_addSymbols -> .) - print reduce using rule 68 (action_addSymbols -> .) - if reduce using rule 68 (action_addSymbols -> .) - do reduce using rule 68 (action_addSymbols -> .) - swap reduce using rule 68 (action_addSymbols -> .) - exit reduce using rule 68 (action_addSymbols -> .) + coma shift and go to state 53 + integer reduce using rule 69 (action_addSymbols -> .) + real reduce using rule 69 (action_addSymbols -> .) + subroutine reduce using rule 69 (action_addSymbols -> .) + end reduce using rule 69 (action_addSymbols -> .) + id reduce using rule 69 (action_addSymbols -> .) + read reduce using rule 69 (action_addSymbols -> .) + print reduce using rule 69 (action_addSymbols -> .) + if reduce using rule 69 (action_addSymbols -> .) + do reduce using rule 69 (action_addSymbols -> .) + swap reduce using rule 69 (action_addSymbols -> .) + exit reduce using rule 69 (action_addSymbols -> .) + comment reduce using rule 69 (action_addSymbols -> .) - action_addSymbols shift and go to state 51 + action_addSymbols shift and go to state 52 -state 30 +state 31 (4) Rid -> id . @@ -628,129 +658,132 @@ state 30 do reduce using rule 4 (Rid -> id .) swap reduce using rule 4 (Rid -> id .) exit reduce using rule 4 (Rid -> id .) - - -state 31 - - (8) Dim -> openBra int action_30 . closedBra - (9) Dim -> openBra int action_30 . closedBra openBra int action_31 closedBra - - closedBra shift and go to state 53 + comment reduce using rule 4 (Rid -> id .) state 32 - (16) S -> id parens . action_41 - (108) action_41 -> . + (8) Dim -> openBra int action_30 . closedBra + (9) Dim -> openBra int action_30 . closedBra openBra int action_31 closedBra - end reduce using rule 108 (action_41 -> .) - id reduce using rule 108 (action_41 -> .) - read reduce using rule 108 (action_41 -> .) - print reduce using rule 108 (action_41 -> .) - if reduce using rule 108 (action_41 -> .) - do reduce using rule 108 (action_41 -> .) - swap reduce using rule 108 (action_41 -> .) - exit reduce using rule 108 (action_41 -> .) - elif reduce using rule 108 (action_41 -> .) - else reduce using rule 108 (action_41 -> .) + closedBra shift and go to state 54 - action_41 shift and go to state 54 state 33 - (24) Dimensional -> id DimensionsOrEmpty . action_1 - (69) action_1 -> . + (16) S -> id parens . action_41 + (109) action_41 -> . - equals reduce using rule 69 (action_1 -> .) - coma reduce using rule 69 (action_1 -> .) - end reduce using rule 69 (action_1 -> .) - id reduce using rule 69 (action_1 -> .) - read reduce using rule 69 (action_1 -> .) - print reduce using rule 69 (action_1 -> .) - if reduce using rule 69 (action_1 -> .) - do reduce using rule 69 (action_1 -> .) - swap reduce using rule 69 (action_1 -> .) - exit reduce using rule 69 (action_1 -> .) - elif reduce using rule 69 (action_1 -> .) - else reduce using rule 69 (action_1 -> .) - mul reduce using rule 69 (action_1 -> .) - div reduce using rule 69 (action_1 -> .) - plus reduce using rule 69 (action_1 -> .) - minus reduce using rule 69 (action_1 -> .) - closedParen reduce using rule 69 (action_1 -> .) - less reduce using rule 69 (action_1 -> .) - more reduce using rule 69 (action_1 -> .) - doubleEquals reduce using rule 69 (action_1 -> .) - notEquals reduce using rule 69 (action_1 -> .) - lessEquals reduce using rule 69 (action_1 -> .) - moreEquals reduce using rule 69 (action_1 -> .) - then reduce using rule 69 (action_1 -> .) - and reduce using rule 69 (action_1 -> .) - or reduce using rule 69 (action_1 -> .) + end reduce using rule 109 (action_41 -> .) + id reduce using rule 109 (action_41 -> .) + read reduce using rule 109 (action_41 -> .) + print reduce using rule 109 (action_41 -> .) + if reduce using rule 109 (action_41 -> .) + do reduce using rule 109 (action_41 -> .) + swap reduce using rule 109 (action_41 -> .) + exit reduce using rule 109 (action_41 -> .) + comment reduce using rule 109 (action_41 -> .) + elif reduce using rule 109 (action_41 -> .) + else reduce using rule 109 (action_41 -> .) - action_1 shift and go to state 55 + action_41 shift and go to state 55 state 34 - (25) DimensionsOrEmpty -> openParen . EA action_setDim1 ComaEAOrEmpty closedParen - (42) EA -> . MultDiv - (43) EA -> . EA SumOrSub action_3 MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (25) Dimensional -> id DimensionsOrEmpty . action_1 + (70) action_1 -> . - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + equals reduce using rule 70 (action_1 -> .) + coma reduce using rule 70 (action_1 -> .) + end reduce using rule 70 (action_1 -> .) + id reduce using rule 70 (action_1 -> .) + read reduce using rule 70 (action_1 -> .) + print reduce using rule 70 (action_1 -> .) + if reduce using rule 70 (action_1 -> .) + do reduce using rule 70 (action_1 -> .) + swap reduce using rule 70 (action_1 -> .) + exit reduce using rule 70 (action_1 -> .) + comment reduce using rule 70 (action_1 -> .) + elif reduce using rule 70 (action_1 -> .) + else reduce using rule 70 (action_1 -> .) + mul reduce using rule 70 (action_1 -> .) + div reduce using rule 70 (action_1 -> .) + plus reduce using rule 70 (action_1 -> .) + minus reduce using rule 70 (action_1 -> .) + closedParen reduce using rule 70 (action_1 -> .) + less reduce using rule 70 (action_1 -> .) + more reduce using rule 70 (action_1 -> .) + doubleEquals reduce using rule 70 (action_1 -> .) + notEquals reduce using rule 70 (action_1 -> .) + lessEquals reduce using rule 70 (action_1 -> .) + moreEquals reduce using rule 70 (action_1 -> .) + then reduce using rule 70 (action_1 -> .) + and reduce using rule 70 (action_1 -> .) + or reduce using rule 70 (action_1 -> .) - EA shift and go to state 57 - MultDiv shift and go to state 58 - EAParens shift and go to state 59 - EItem shift and go to state 60 - Dimensional shift and go to state 61 + action_1 shift and go to state 56 state 35 + (26) DimensionsOrEmpty -> openParen . EA action_setDim1 ComaEAOrEmpty closedParen + (43) EA -> . MultDiv + (44) EA -> . EA SumOrSub action_3 MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 + + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + + EA shift and go to state 58 + MultDiv shift and go to state 59 + EAParens shift and go to state 60 + EItem shift and go to state 61 + Dimensional shift and go to state 62 + +state 36 + (1) programa -> program action_37 id V F action_38 B end program . $end reduce using rule 1 (programa -> program action_37 id V F action_38 B end program .) -state 36 - - (15) S -> Dimensional equals . EA action_8 - (42) EA -> . MultDiv - (43) EA -> . EA SumOrSub action_3 MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 - - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 - - Dimensional shift and go to state 61 - EA shift and go to state 64 - MultDiv shift and go to state 58 - EAParens shift and go to state 59 - EItem shift and go to state 60 - state 37 + (15) S -> Dimensional equals . EA action_8 + (43) EA -> . MultDiv + (44) EA -> . EA SumOrSub action_3 MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 + + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + + Dimensional shift and go to state 62 + EA shift and go to state 65 + MultDiv shift and go to state 59 + EAParens shift and go to state 60 + EItem shift and go to state 61 + +state 38 + (17) S -> read RDimensional . - (30) RDimensional -> RDimensional . coma Dimensional action_36 + (31) RDimensional -> RDimensional . coma Dimensional action_36 end reduce using rule 17 (S -> read RDimensional .) id reduce using rule 17 (S -> read RDimensional .) @@ -760,69 +793,72 @@ state 37 do reduce using rule 17 (S -> read RDimensional .) swap reduce using rule 17 (S -> read RDimensional .) exit reduce using rule 17 (S -> read RDimensional .) + comment reduce using rule 17 (S -> read RDimensional .) elif reduce using rule 17 (S -> read RDimensional .) else reduce using rule 17 (S -> read RDimensional .) - coma shift and go to state 65 + coma shift and go to state 66 -state 38 - - (29) RDimensional -> Dimensional . action_36 - (103) action_36 -> . - - coma reduce using rule 103 (action_36 -> .) - end reduce using rule 103 (action_36 -> .) - id reduce using rule 103 (action_36 -> .) - read reduce using rule 103 (action_36 -> .) - print reduce using rule 103 (action_36 -> .) - if reduce using rule 103 (action_36 -> .) - do reduce using rule 103 (action_36 -> .) - swap reduce using rule 103 (action_36 -> .) - exit reduce using rule 103 (action_36 -> .) - elif reduce using rule 103 (action_36 -> .) - else reduce using rule 103 (action_36 -> .) - - action_36 shift and go to state 66 - state 39 - (24) Dimensional -> id . DimensionsOrEmpty action_1 - (25) DimensionsOrEmpty -> . openParen EA action_setDim1 ComaEAOrEmpty closedParen - (26) DimensionsOrEmpty -> . + (30) RDimensional -> Dimensional . action_36 + (104) action_36 -> . - openParen shift and go to state 34 - coma reduce using rule 26 (DimensionsOrEmpty -> .) - end reduce using rule 26 (DimensionsOrEmpty -> .) - id reduce using rule 26 (DimensionsOrEmpty -> .) - read reduce using rule 26 (DimensionsOrEmpty -> .) - print reduce using rule 26 (DimensionsOrEmpty -> .) - if reduce using rule 26 (DimensionsOrEmpty -> .) - do reduce using rule 26 (DimensionsOrEmpty -> .) - swap reduce using rule 26 (DimensionsOrEmpty -> .) - exit reduce using rule 26 (DimensionsOrEmpty -> .) - elif reduce using rule 26 (DimensionsOrEmpty -> .) - else reduce using rule 26 (DimensionsOrEmpty -> .) - mul reduce using rule 26 (DimensionsOrEmpty -> .) - div reduce using rule 26 (DimensionsOrEmpty -> .) - plus reduce using rule 26 (DimensionsOrEmpty -> .) - minus reduce using rule 26 (DimensionsOrEmpty -> .) - closedParen reduce using rule 26 (DimensionsOrEmpty -> .) - less reduce using rule 26 (DimensionsOrEmpty -> .) - more reduce using rule 26 (DimensionsOrEmpty -> .) - doubleEquals reduce using rule 26 (DimensionsOrEmpty -> .) - notEquals reduce using rule 26 (DimensionsOrEmpty -> .) - lessEquals reduce using rule 26 (DimensionsOrEmpty -> .) - moreEquals reduce using rule 26 (DimensionsOrEmpty -> .) - then reduce using rule 26 (DimensionsOrEmpty -> .) - and reduce using rule 26 (DimensionsOrEmpty -> .) - or reduce using rule 26 (DimensionsOrEmpty -> .) + coma reduce using rule 104 (action_36 -> .) + end reduce using rule 104 (action_36 -> .) + id reduce using rule 104 (action_36 -> .) + read reduce using rule 104 (action_36 -> .) + print reduce using rule 104 (action_36 -> .) + if reduce using rule 104 (action_36 -> .) + do reduce using rule 104 (action_36 -> .) + swap reduce using rule 104 (action_36 -> .) + exit reduce using rule 104 (action_36 -> .) + comment reduce using rule 104 (action_36 -> .) + elif reduce using rule 104 (action_36 -> .) + else reduce using rule 104 (action_36 -> .) - DimensionsOrEmpty shift and go to state 33 + action_36 shift and go to state 67 state 40 + (25) Dimensional -> id . DimensionsOrEmpty action_1 + (26) DimensionsOrEmpty -> . openParen EA action_setDim1 ComaEAOrEmpty closedParen + (27) DimensionsOrEmpty -> . + + openParen shift and go to state 35 + coma reduce using rule 27 (DimensionsOrEmpty -> .) + end reduce using rule 27 (DimensionsOrEmpty -> .) + id reduce using rule 27 (DimensionsOrEmpty -> .) + read reduce using rule 27 (DimensionsOrEmpty -> .) + print reduce using rule 27 (DimensionsOrEmpty -> .) + if reduce using rule 27 (DimensionsOrEmpty -> .) + do reduce using rule 27 (DimensionsOrEmpty -> .) + swap reduce using rule 27 (DimensionsOrEmpty -> .) + exit reduce using rule 27 (DimensionsOrEmpty -> .) + comment reduce using rule 27 (DimensionsOrEmpty -> .) + elif reduce using rule 27 (DimensionsOrEmpty -> .) + else reduce using rule 27 (DimensionsOrEmpty -> .) + mul reduce using rule 27 (DimensionsOrEmpty -> .) + div reduce using rule 27 (DimensionsOrEmpty -> .) + plus reduce using rule 27 (DimensionsOrEmpty -> .) + minus reduce using rule 27 (DimensionsOrEmpty -> .) + closedParen reduce using rule 27 (DimensionsOrEmpty -> .) + less reduce using rule 27 (DimensionsOrEmpty -> .) + more reduce using rule 27 (DimensionsOrEmpty -> .) + doubleEquals reduce using rule 27 (DimensionsOrEmpty -> .) + notEquals reduce using rule 27 (DimensionsOrEmpty -> .) + lessEquals reduce using rule 27 (DimensionsOrEmpty -> .) + moreEquals reduce using rule 27 (DimensionsOrEmpty -> .) + then reduce using rule 27 (DimensionsOrEmpty -> .) + and reduce using rule 27 (DimensionsOrEmpty -> .) + or reduce using rule 27 (DimensionsOrEmpty -> .) + + DimensionsOrEmpty shift and go to state 34 + +state 41 + (18) S -> print RDimOrString . - (32) RDimOrString -> RDimOrString . coma DimOrString + (33) RDimOrString -> RDimOrString . coma DimOrString end reduce using rule 18 (S -> print RDimOrString .) id reduce using rule 18 (S -> print RDimOrString .) @@ -832,129 +868,135 @@ state 40 do reduce using rule 18 (S -> print RDimOrString .) swap reduce using rule 18 (S -> print RDimOrString .) exit reduce using rule 18 (S -> print RDimOrString .) + comment reduce using rule 18 (S -> print RDimOrString .) elif reduce using rule 18 (S -> print RDimOrString .) else reduce using rule 18 (S -> print RDimOrString .) - coma shift and go to state 67 - - -state 41 - - (31) RDimOrString -> DimOrString . - - coma reduce using rule 31 (RDimOrString -> DimOrString .) - end reduce using rule 31 (RDimOrString -> DimOrString .) - id reduce using rule 31 (RDimOrString -> DimOrString .) - read reduce using rule 31 (RDimOrString -> DimOrString .) - print reduce using rule 31 (RDimOrString -> DimOrString .) - if reduce using rule 31 (RDimOrString -> DimOrString .) - do reduce using rule 31 (RDimOrString -> DimOrString .) - swap reduce using rule 31 (RDimOrString -> DimOrString .) - exit reduce using rule 31 (RDimOrString -> DimOrString .) - elif reduce using rule 31 (RDimOrString -> DimOrString .) - else reduce using rule 31 (RDimOrString -> DimOrString .) + coma shift and go to state 68 state 42 - (33) DimOrString -> Dimensional . action_33 - (101) action_33 -> . + (32) RDimOrString -> DimOrString . - coma reduce using rule 101 (action_33 -> .) - end reduce using rule 101 (action_33 -> .) - id reduce using rule 101 (action_33 -> .) - read reduce using rule 101 (action_33 -> .) - print reduce using rule 101 (action_33 -> .) - if reduce using rule 101 (action_33 -> .) - do reduce using rule 101 (action_33 -> .) - swap reduce using rule 101 (action_33 -> .) - exit reduce using rule 101 (action_33 -> .) - elif reduce using rule 101 (action_33 -> .) - else reduce using rule 101 (action_33 -> .) + coma reduce using rule 32 (RDimOrString -> DimOrString .) + end reduce using rule 32 (RDimOrString -> DimOrString .) + id reduce using rule 32 (RDimOrString -> DimOrString .) + read reduce using rule 32 (RDimOrString -> DimOrString .) + print reduce using rule 32 (RDimOrString -> DimOrString .) + if reduce using rule 32 (RDimOrString -> DimOrString .) + do reduce using rule 32 (RDimOrString -> DimOrString .) + swap reduce using rule 32 (RDimOrString -> DimOrString .) + exit reduce using rule 32 (RDimOrString -> DimOrString .) + comment reduce using rule 32 (RDimOrString -> DimOrString .) + elif reduce using rule 32 (RDimOrString -> DimOrString .) + else reduce using rule 32 (RDimOrString -> DimOrString .) - action_33 shift and go to state 68 state 43 - (34) DimOrString -> string . action_34 - (102) action_34 -> . + (34) DimOrString -> Dimensional . action_33 + (102) action_33 -> . - coma reduce using rule 102 (action_34 -> .) - end reduce using rule 102 (action_34 -> .) - id reduce using rule 102 (action_34 -> .) - read reduce using rule 102 (action_34 -> .) - print reduce using rule 102 (action_34 -> .) - if reduce using rule 102 (action_34 -> .) - do reduce using rule 102 (action_34 -> .) - swap reduce using rule 102 (action_34 -> .) - exit reduce using rule 102 (action_34 -> .) - elif reduce using rule 102 (action_34 -> .) - else reduce using rule 102 (action_34 -> .) + coma reduce using rule 102 (action_33 -> .) + end reduce using rule 102 (action_33 -> .) + id reduce using rule 102 (action_33 -> .) + read reduce using rule 102 (action_33 -> .) + print reduce using rule 102 (action_33 -> .) + if reduce using rule 102 (action_33 -> .) + do reduce using rule 102 (action_33 -> .) + swap reduce using rule 102 (action_33 -> .) + exit reduce using rule 102 (action_33 -> .) + comment reduce using rule 102 (action_33 -> .) + elif reduce using rule 102 (action_33 -> .) + else reduce using rule 102 (action_33 -> .) - action_34 shift and go to state 69 + action_33 shift and go to state 69 state 44 - (35) DimOrString -> endline . action_34 - (102) action_34 -> . + (35) DimOrString -> string . action_34 + (103) action_34 -> . - coma reduce using rule 102 (action_34 -> .) - end reduce using rule 102 (action_34 -> .) - id reduce using rule 102 (action_34 -> .) - read reduce using rule 102 (action_34 -> .) - print reduce using rule 102 (action_34 -> .) - if reduce using rule 102 (action_34 -> .) - do reduce using rule 102 (action_34 -> .) - swap reduce using rule 102 (action_34 -> .) - exit reduce using rule 102 (action_34 -> .) - elif reduce using rule 102 (action_34 -> .) - else reduce using rule 102 (action_34 -> .) + coma reduce using rule 103 (action_34 -> .) + end reduce using rule 103 (action_34 -> .) + id reduce using rule 103 (action_34 -> .) + read reduce using rule 103 (action_34 -> .) + print reduce using rule 103 (action_34 -> .) + if reduce using rule 103 (action_34 -> .) + do reduce using rule 103 (action_34 -> .) + swap reduce using rule 103 (action_34 -> .) + exit reduce using rule 103 (action_34 -> .) + comment reduce using rule 103 (action_34 -> .) + elif reduce using rule 103 (action_34 -> .) + else reduce using rule 103 (action_34 -> .) action_34 shift and go to state 70 state 45 - (19) S -> if action_16 . Relif ElseOrEmpty end if action_20 - (36) Relif -> . openParen EL closedParen action_17 then B - (37) Relif -> . Relif elif action_18 openParen EL closedParen action_17 then B + (36) DimOrString -> endline . action_34 + (103) action_34 -> . - openParen shift and go to state 72 + coma reduce using rule 103 (action_34 -> .) + end reduce using rule 103 (action_34 -> .) + id reduce using rule 103 (action_34 -> .) + read reduce using rule 103 (action_34 -> .) + print reduce using rule 103 (action_34 -> .) + if reduce using rule 103 (action_34 -> .) + do reduce using rule 103 (action_34 -> .) + swap reduce using rule 103 (action_34 -> .) + exit reduce using rule 103 (action_34 -> .) + comment reduce using rule 103 (action_34 -> .) + elif reduce using rule 103 (action_34 -> .) + else reduce using rule 103 (action_34 -> .) - Relif shift and go to state 71 + action_34 shift and go to state 71 state 46 - (20) S -> do id . action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do - (92) action_24 -> . + (19) S -> if action_16 . Relif ElseOrEmpty end if action_20 + (37) Relif -> . openParen EL closedParen action_17 then B + (38) Relif -> . Relif elif action_18 openParen EL closedParen action_17 then B - equals reduce using rule 92 (action_24 -> .) + openParen shift and go to state 73 - action_24 shift and go to state 73 + Relif shift and go to state 72 state 47 - (21) S -> do then . action_21 B action_22 end do - (89) action_21 -> . + (20) S -> do id . action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do + (93) action_24 -> . - id reduce using rule 89 (action_21 -> .) - read reduce using rule 89 (action_21 -> .) - print reduce using rule 89 (action_21 -> .) - if reduce using rule 89 (action_21 -> .) - do reduce using rule 89 (action_21 -> .) - swap reduce using rule 89 (action_21 -> .) - exit reduce using rule 89 (action_21 -> .) - end reduce using rule 89 (action_21 -> .) + equals reduce using rule 93 (action_24 -> .) - action_21 shift and go to state 74 + action_24 shift and go to state 74 state 48 - (22) S -> swap Dimensional . coma Dimensional + (21) S -> do then . action_21 B action_22 end do + (90) action_21 -> . - coma shift and go to state 75 + id reduce using rule 90 (action_21 -> .) + read reduce using rule 90 (action_21 -> .) + print reduce using rule 90 (action_21 -> .) + if reduce using rule 90 (action_21 -> .) + do reduce using rule 90 (action_21 -> .) + swap reduce using rule 90 (action_21 -> .) + exit reduce using rule 90 (action_21 -> .) + comment reduce using rule 90 (action_21 -> .) + end reduce using rule 90 (action_21 -> .) + action_21 shift and go to state 75 state 49 + (22) S -> swap Dimensional . coma Dimensional + + coma shift and go to state 76 + + +state 50 + (23) S -> exit action_23 . end reduce using rule 23 (S -> exit action_23 .) @@ -965,11 +1007,12 @@ state 49 do reduce using rule 23 (S -> exit action_23 .) swap reduce using rule 23 (S -> exit action_23 .) exit reduce using rule 23 (S -> exit action_23 .) + comment reduce using rule 23 (S -> exit action_23 .) elif reduce using rule 23 (S -> exit action_23 .) else reduce using rule 23 (S -> exit action_23 .) -state 50 +state 51 (11) F -> F subroutine id action_39 B . end subroutine action_40 (13) B -> B . S @@ -982,9 +1025,10 @@ state 50 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 - end shift and go to state 76 + end shift and go to state 77 id shift and go to state 18 read shift and go to state 22 print shift and go to state 23 @@ -992,46 +1036,48 @@ state 50 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 S shift and go to state 20 Dimensional shift and go to state 21 -state 51 +state 52 (2) V -> V Tipo Dim doubleColon Rid action_addSymbols . action_32 - (100) action_32 -> . + (101) action_32 -> . - integer reduce using rule 100 (action_32 -> .) - real reduce using rule 100 (action_32 -> .) - subroutine reduce using rule 100 (action_32 -> .) - end reduce using rule 100 (action_32 -> .) - id reduce using rule 100 (action_32 -> .) - read reduce using rule 100 (action_32 -> .) - print reduce using rule 100 (action_32 -> .) - if reduce using rule 100 (action_32 -> .) - do reduce using rule 100 (action_32 -> .) - swap reduce using rule 100 (action_32 -> .) - exit reduce using rule 100 (action_32 -> .) + integer reduce using rule 101 (action_32 -> .) + real reduce using rule 101 (action_32 -> .) + subroutine reduce using rule 101 (action_32 -> .) + end reduce using rule 101 (action_32 -> .) + id reduce using rule 101 (action_32 -> .) + read reduce using rule 101 (action_32 -> .) + print reduce using rule 101 (action_32 -> .) + if reduce using rule 101 (action_32 -> .) + do reduce using rule 101 (action_32 -> .) + swap reduce using rule 101 (action_32 -> .) + exit reduce using rule 101 (action_32 -> .) + comment reduce using rule 101 (action_32 -> .) - action_32 shift and go to state 77 + action_32 shift and go to state 78 -state 52 +state 53 (5) Rid -> Rid coma . id - id shift and go to state 78 + id shift and go to state 79 -state 53 +state 54 (8) Dim -> openBra int action_30 closedBra . (9) Dim -> openBra int action_30 closedBra . openBra int action_31 closedBra doubleColon reduce using rule 8 (Dim -> openBra int action_30 closedBra .) - openBra shift and go to state 79 + openBra shift and go to state 80 -state 54 +state 55 (16) S -> id parens action_41 . @@ -1043,418 +1089,431 @@ state 54 do reduce using rule 16 (S -> id parens action_41 .) swap reduce using rule 16 (S -> id parens action_41 .) exit reduce using rule 16 (S -> id parens action_41 .) + comment reduce using rule 16 (S -> id parens action_41 .) elif reduce using rule 16 (S -> id parens action_41 .) else reduce using rule 16 (S -> id parens action_41 .) -state 55 - - (24) Dimensional -> id DimensionsOrEmpty action_1 . - - equals reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - coma reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - end reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - id reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - read reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - print reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - if reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - do reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - swap reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - exit reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - elif reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - else reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - mul reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - div reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - plus reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - minus reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - closedParen reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - less reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - more reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - doubleEquals reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - notEquals reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - lessEquals reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - moreEquals reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - then reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - and reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - or reduce using rule 24 (Dimensional -> id DimensionsOrEmpty action_1 .) - - state 56 - (51) EAParens -> openParen . EA closedParen - (42) EA -> . MultDiv - (43) EA -> . EA SumOrSub action_3 MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (25) Dimensional -> id DimensionsOrEmpty action_1 . - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + equals reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + coma reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + end reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + id reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + read reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + print reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + if reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + do reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + swap reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + exit reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + comment reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + elif reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + else reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + mul reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + div reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + plus reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + minus reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + closedParen reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + less reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + more reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + doubleEquals reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + notEquals reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + lessEquals reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + moreEquals reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + then reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + and reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) + or reduce using rule 25 (Dimensional -> id DimensionsOrEmpty action_1 .) - EA shift and go to state 80 - MultDiv shift and go to state 58 - EAParens shift and go to state 59 - EItem shift and go to state 60 - Dimensional shift and go to state 61 state 57 - (25) DimensionsOrEmpty -> openParen EA . action_setDim1 ComaEAOrEmpty closedParen - (43) EA -> EA . SumOrSub action_3 MultDiv action_4 - (109) action_setDim1 -> . - (44) SumOrSub -> . plus - (45) SumOrSub -> . minus + (52) EAParens -> openParen . EA closedParen + (43) EA -> . MultDiv + (44) EA -> . EA SumOrSub action_3 MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - coma reduce using rule 109 (action_setDim1 -> .) - closedParen reduce using rule 109 (action_setDim1 -> .) - plus shift and go to state 83 - minus shift and go to state 84 + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 - action_setDim1 shift and go to state 81 - SumOrSub shift and go to state 82 + EA shift and go to state 81 + MultDiv shift and go to state 59 + EAParens shift and go to state 60 + EItem shift and go to state 61 + Dimensional shift and go to state 62 state 58 - (42) EA -> MultDiv . - (47) MultDiv -> MultDiv . MDSymbols action_5 EAParens action_6 - (48) MDSymbols -> . mul - (49) MDSymbols -> . div + (26) DimensionsOrEmpty -> openParen EA . action_setDim1 ComaEAOrEmpty closedParen + (44) EA -> EA . SumOrSub action_3 MultDiv action_4 + (110) action_setDim1 -> . + (45) SumOrSub -> . plus + (46) SumOrSub -> . minus - plus reduce using rule 42 (EA -> MultDiv .) - minus reduce using rule 42 (EA -> MultDiv .) - coma reduce using rule 42 (EA -> MultDiv .) - closedParen reduce using rule 42 (EA -> MultDiv .) - end reduce using rule 42 (EA -> MultDiv .) - id reduce using rule 42 (EA -> MultDiv .) - read reduce using rule 42 (EA -> MultDiv .) - print reduce using rule 42 (EA -> MultDiv .) - if reduce using rule 42 (EA -> MultDiv .) - do reduce using rule 42 (EA -> MultDiv .) - swap reduce using rule 42 (EA -> MultDiv .) - exit reduce using rule 42 (EA -> MultDiv .) - elif reduce using rule 42 (EA -> MultDiv .) - else reduce using rule 42 (EA -> MultDiv .) - then reduce using rule 42 (EA -> MultDiv .) - mul shift and go to state 86 - div shift and go to state 87 + coma reduce using rule 110 (action_setDim1 -> .) + closedParen reduce using rule 110 (action_setDim1 -> .) + plus shift and go to state 84 + minus shift and go to state 85 - MDSymbols shift and go to state 85 + action_setDim1 shift and go to state 82 + SumOrSub shift and go to state 83 state 59 - (46) MultDiv -> EAParens . + (43) EA -> MultDiv . + (48) MultDiv -> MultDiv . MDSymbols action_5 EAParens action_6 + (49) MDSymbols -> . mul + (50) MDSymbols -> . div - mul reduce using rule 46 (MultDiv -> EAParens .) - div reduce using rule 46 (MultDiv -> EAParens .) - plus reduce using rule 46 (MultDiv -> EAParens .) - minus reduce using rule 46 (MultDiv -> EAParens .) - coma reduce using rule 46 (MultDiv -> EAParens .) - closedParen reduce using rule 46 (MultDiv -> EAParens .) - end reduce using rule 46 (MultDiv -> EAParens .) - id reduce using rule 46 (MultDiv -> EAParens .) - read reduce using rule 46 (MultDiv -> EAParens .) - print reduce using rule 46 (MultDiv -> EAParens .) - if reduce using rule 46 (MultDiv -> EAParens .) - do reduce using rule 46 (MultDiv -> EAParens .) - swap reduce using rule 46 (MultDiv -> EAParens .) - exit reduce using rule 46 (MultDiv -> EAParens .) - elif reduce using rule 46 (MultDiv -> EAParens .) - else reduce using rule 46 (MultDiv -> EAParens .) - then reduce using rule 46 (MultDiv -> EAParens .) + plus reduce using rule 43 (EA -> MultDiv .) + minus reduce using rule 43 (EA -> MultDiv .) + coma reduce using rule 43 (EA -> MultDiv .) + closedParen reduce using rule 43 (EA -> MultDiv .) + end reduce using rule 43 (EA -> MultDiv .) + id reduce using rule 43 (EA -> MultDiv .) + read reduce using rule 43 (EA -> MultDiv .) + print reduce using rule 43 (EA -> MultDiv .) + if reduce using rule 43 (EA -> MultDiv .) + do reduce using rule 43 (EA -> MultDiv .) + swap reduce using rule 43 (EA -> MultDiv .) + exit reduce using rule 43 (EA -> MultDiv .) + comment reduce using rule 43 (EA -> MultDiv .) + elif reduce using rule 43 (EA -> MultDiv .) + else reduce using rule 43 (EA -> MultDiv .) + then reduce using rule 43 (EA -> MultDiv .) + mul shift and go to state 87 + div shift and go to state 88 + MDSymbols shift and go to state 86 state 60 - (50) EAParens -> EItem . + (47) MultDiv -> EAParens . - mul reduce using rule 50 (EAParens -> EItem .) - div reduce using rule 50 (EAParens -> EItem .) - plus reduce using rule 50 (EAParens -> EItem .) - minus reduce using rule 50 (EAParens -> EItem .) - coma reduce using rule 50 (EAParens -> EItem .) - closedParen reduce using rule 50 (EAParens -> EItem .) - end reduce using rule 50 (EAParens -> EItem .) - id reduce using rule 50 (EAParens -> EItem .) - read reduce using rule 50 (EAParens -> EItem .) - print reduce using rule 50 (EAParens -> EItem .) - if reduce using rule 50 (EAParens -> EItem .) - do reduce using rule 50 (EAParens -> EItem .) - swap reduce using rule 50 (EAParens -> EItem .) - exit reduce using rule 50 (EAParens -> EItem .) - elif reduce using rule 50 (EAParens -> EItem .) - else reduce using rule 50 (EAParens -> EItem .) - then reduce using rule 50 (EAParens -> EItem .) + mul reduce using rule 47 (MultDiv -> EAParens .) + div reduce using rule 47 (MultDiv -> EAParens .) + plus reduce using rule 47 (MultDiv -> EAParens .) + minus reduce using rule 47 (MultDiv -> EAParens .) + coma reduce using rule 47 (MultDiv -> EAParens .) + closedParen reduce using rule 47 (MultDiv -> EAParens .) + end reduce using rule 47 (MultDiv -> EAParens .) + id reduce using rule 47 (MultDiv -> EAParens .) + read reduce using rule 47 (MultDiv -> EAParens .) + print reduce using rule 47 (MultDiv -> EAParens .) + if reduce using rule 47 (MultDiv -> EAParens .) + do reduce using rule 47 (MultDiv -> EAParens .) + swap reduce using rule 47 (MultDiv -> EAParens .) + exit reduce using rule 47 (MultDiv -> EAParens .) + comment reduce using rule 47 (MultDiv -> EAParens .) + elif reduce using rule 47 (MultDiv -> EAParens .) + else reduce using rule 47 (MultDiv -> EAParens .) + then reduce using rule 47 (MultDiv -> EAParens .) state 61 - (59) EItem -> Dimensional . + (51) EAParens -> EItem . - mul reduce using rule 59 (EItem -> Dimensional .) - div reduce using rule 59 (EItem -> Dimensional .) - plus reduce using rule 59 (EItem -> Dimensional .) - minus reduce using rule 59 (EItem -> Dimensional .) - coma reduce using rule 59 (EItem -> Dimensional .) - closedParen reduce using rule 59 (EItem -> Dimensional .) - end reduce using rule 59 (EItem -> Dimensional .) - id reduce using rule 59 (EItem -> Dimensional .) - read reduce using rule 59 (EItem -> Dimensional .) - print reduce using rule 59 (EItem -> Dimensional .) - if reduce using rule 59 (EItem -> Dimensional .) - do reduce using rule 59 (EItem -> Dimensional .) - swap reduce using rule 59 (EItem -> Dimensional .) - exit reduce using rule 59 (EItem -> Dimensional .) - elif reduce using rule 59 (EItem -> Dimensional .) - else reduce using rule 59 (EItem -> Dimensional .) - less reduce using rule 59 (EItem -> Dimensional .) - more reduce using rule 59 (EItem -> Dimensional .) - doubleEquals reduce using rule 59 (EItem -> Dimensional .) - notEquals reduce using rule 59 (EItem -> Dimensional .) - lessEquals reduce using rule 59 (EItem -> Dimensional .) - moreEquals reduce using rule 59 (EItem -> Dimensional .) - then reduce using rule 59 (EItem -> Dimensional .) - and reduce using rule 59 (EItem -> Dimensional .) - or reduce using rule 59 (EItem -> Dimensional .) + mul reduce using rule 51 (EAParens -> EItem .) + div reduce using rule 51 (EAParens -> EItem .) + plus reduce using rule 51 (EAParens -> EItem .) + minus reduce using rule 51 (EAParens -> EItem .) + coma reduce using rule 51 (EAParens -> EItem .) + closedParen reduce using rule 51 (EAParens -> EItem .) + end reduce using rule 51 (EAParens -> EItem .) + id reduce using rule 51 (EAParens -> EItem .) + read reduce using rule 51 (EAParens -> EItem .) + print reduce using rule 51 (EAParens -> EItem .) + if reduce using rule 51 (EAParens -> EItem .) + do reduce using rule 51 (EAParens -> EItem .) + swap reduce using rule 51 (EAParens -> EItem .) + exit reduce using rule 51 (EAParens -> EItem .) + comment reduce using rule 51 (EAParens -> EItem .) + elif reduce using rule 51 (EAParens -> EItem .) + else reduce using rule 51 (EAParens -> EItem .) + then reduce using rule 51 (EAParens -> EItem .) state 62 - (60) EItem -> int . action_2 - (70) action_2 -> . + (60) EItem -> Dimensional . - mul reduce using rule 70 (action_2 -> .) - div reduce using rule 70 (action_2 -> .) - plus reduce using rule 70 (action_2 -> .) - minus reduce using rule 70 (action_2 -> .) - coma reduce using rule 70 (action_2 -> .) - closedParen reduce using rule 70 (action_2 -> .) - end reduce using rule 70 (action_2 -> .) - id reduce using rule 70 (action_2 -> .) - read reduce using rule 70 (action_2 -> .) - print reduce using rule 70 (action_2 -> .) - if reduce using rule 70 (action_2 -> .) - do reduce using rule 70 (action_2 -> .) - swap reduce using rule 70 (action_2 -> .) - exit reduce using rule 70 (action_2 -> .) - elif reduce using rule 70 (action_2 -> .) - else reduce using rule 70 (action_2 -> .) - less reduce using rule 70 (action_2 -> .) - more reduce using rule 70 (action_2 -> .) - doubleEquals reduce using rule 70 (action_2 -> .) - notEquals reduce using rule 70 (action_2 -> .) - lessEquals reduce using rule 70 (action_2 -> .) - moreEquals reduce using rule 70 (action_2 -> .) - then reduce using rule 70 (action_2 -> .) - and reduce using rule 70 (action_2 -> .) - or reduce using rule 70 (action_2 -> .) + mul reduce using rule 60 (EItem -> Dimensional .) + div reduce using rule 60 (EItem -> Dimensional .) + plus reduce using rule 60 (EItem -> Dimensional .) + minus reduce using rule 60 (EItem -> Dimensional .) + coma reduce using rule 60 (EItem -> Dimensional .) + closedParen reduce using rule 60 (EItem -> Dimensional .) + end reduce using rule 60 (EItem -> Dimensional .) + id reduce using rule 60 (EItem -> Dimensional .) + read reduce using rule 60 (EItem -> Dimensional .) + print reduce using rule 60 (EItem -> Dimensional .) + if reduce using rule 60 (EItem -> Dimensional .) + do reduce using rule 60 (EItem -> Dimensional .) + swap reduce using rule 60 (EItem -> Dimensional .) + exit reduce using rule 60 (EItem -> Dimensional .) + comment reduce using rule 60 (EItem -> Dimensional .) + elif reduce using rule 60 (EItem -> Dimensional .) + else reduce using rule 60 (EItem -> Dimensional .) + less reduce using rule 60 (EItem -> Dimensional .) + more reduce using rule 60 (EItem -> Dimensional .) + doubleEquals reduce using rule 60 (EItem -> Dimensional .) + notEquals reduce using rule 60 (EItem -> Dimensional .) + lessEquals reduce using rule 60 (EItem -> Dimensional .) + moreEquals reduce using rule 60 (EItem -> Dimensional .) + then reduce using rule 60 (EItem -> Dimensional .) + and reduce using rule 60 (EItem -> Dimensional .) + or reduce using rule 60 (EItem -> Dimensional .) - action_2 shift and go to state 88 state 63 - (61) EItem -> rea . action_2_rea - (71) action_2_rea -> . + (61) EItem -> int . action_2 + (71) action_2 -> . - mul reduce using rule 71 (action_2_rea -> .) - div reduce using rule 71 (action_2_rea -> .) - plus reduce using rule 71 (action_2_rea -> .) - minus reduce using rule 71 (action_2_rea -> .) - coma reduce using rule 71 (action_2_rea -> .) - closedParen reduce using rule 71 (action_2_rea -> .) - end reduce using rule 71 (action_2_rea -> .) - id reduce using rule 71 (action_2_rea -> .) - read reduce using rule 71 (action_2_rea -> .) - print reduce using rule 71 (action_2_rea -> .) - if reduce using rule 71 (action_2_rea -> .) - do reduce using rule 71 (action_2_rea -> .) - swap reduce using rule 71 (action_2_rea -> .) - exit reduce using rule 71 (action_2_rea -> .) - elif reduce using rule 71 (action_2_rea -> .) - else reduce using rule 71 (action_2_rea -> .) - less reduce using rule 71 (action_2_rea -> .) - more reduce using rule 71 (action_2_rea -> .) - doubleEquals reduce using rule 71 (action_2_rea -> .) - notEquals reduce using rule 71 (action_2_rea -> .) - lessEquals reduce using rule 71 (action_2_rea -> .) - moreEquals reduce using rule 71 (action_2_rea -> .) - then reduce using rule 71 (action_2_rea -> .) - and reduce using rule 71 (action_2_rea -> .) - or reduce using rule 71 (action_2_rea -> .) + mul reduce using rule 71 (action_2 -> .) + div reduce using rule 71 (action_2 -> .) + plus reduce using rule 71 (action_2 -> .) + minus reduce using rule 71 (action_2 -> .) + coma reduce using rule 71 (action_2 -> .) + closedParen reduce using rule 71 (action_2 -> .) + end reduce using rule 71 (action_2 -> .) + id reduce using rule 71 (action_2 -> .) + read reduce using rule 71 (action_2 -> .) + print reduce using rule 71 (action_2 -> .) + if reduce using rule 71 (action_2 -> .) + do reduce using rule 71 (action_2 -> .) + swap reduce using rule 71 (action_2 -> .) + exit reduce using rule 71 (action_2 -> .) + comment reduce using rule 71 (action_2 -> .) + elif reduce using rule 71 (action_2 -> .) + else reduce using rule 71 (action_2 -> .) + less reduce using rule 71 (action_2 -> .) + more reduce using rule 71 (action_2 -> .) + doubleEquals reduce using rule 71 (action_2 -> .) + notEquals reduce using rule 71 (action_2 -> .) + lessEquals reduce using rule 71 (action_2 -> .) + moreEquals reduce using rule 71 (action_2 -> .) + then reduce using rule 71 (action_2 -> .) + and reduce using rule 71 (action_2 -> .) + or reduce using rule 71 (action_2 -> .) - action_2_rea shift and go to state 89 + action_2 shift and go to state 89 state 64 - (15) S -> Dimensional equals EA . action_8 - (43) EA -> EA . SumOrSub action_3 MultDiv action_4 - (76) action_8 -> . - (44) SumOrSub -> . plus - (45) SumOrSub -> . minus + (62) EItem -> rea . action_2_rea + (72) action_2_rea -> . - end reduce using rule 76 (action_8 -> .) - id reduce using rule 76 (action_8 -> .) - read reduce using rule 76 (action_8 -> .) - print reduce using rule 76 (action_8 -> .) - if reduce using rule 76 (action_8 -> .) - do reduce using rule 76 (action_8 -> .) - swap reduce using rule 76 (action_8 -> .) - exit reduce using rule 76 (action_8 -> .) - elif reduce using rule 76 (action_8 -> .) - else reduce using rule 76 (action_8 -> .) - plus shift and go to state 83 - minus shift and go to state 84 + mul reduce using rule 72 (action_2_rea -> .) + div reduce using rule 72 (action_2_rea -> .) + plus reduce using rule 72 (action_2_rea -> .) + minus reduce using rule 72 (action_2_rea -> .) + coma reduce using rule 72 (action_2_rea -> .) + closedParen reduce using rule 72 (action_2_rea -> .) + end reduce using rule 72 (action_2_rea -> .) + id reduce using rule 72 (action_2_rea -> .) + read reduce using rule 72 (action_2_rea -> .) + print reduce using rule 72 (action_2_rea -> .) + if reduce using rule 72 (action_2_rea -> .) + do reduce using rule 72 (action_2_rea -> .) + swap reduce using rule 72 (action_2_rea -> .) + exit reduce using rule 72 (action_2_rea -> .) + comment reduce using rule 72 (action_2_rea -> .) + elif reduce using rule 72 (action_2_rea -> .) + else reduce using rule 72 (action_2_rea -> .) + less reduce using rule 72 (action_2_rea -> .) + more reduce using rule 72 (action_2_rea -> .) + doubleEquals reduce using rule 72 (action_2_rea -> .) + notEquals reduce using rule 72 (action_2_rea -> .) + lessEquals reduce using rule 72 (action_2_rea -> .) + moreEquals reduce using rule 72 (action_2_rea -> .) + then reduce using rule 72 (action_2_rea -> .) + and reduce using rule 72 (action_2_rea -> .) + or reduce using rule 72 (action_2_rea -> .) - action_8 shift and go to state 90 - SumOrSub shift and go to state 82 + action_2_rea shift and go to state 90 state 65 - (30) RDimensional -> RDimensional coma . Dimensional action_36 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (15) S -> Dimensional equals EA . action_8 + (44) EA -> EA . SumOrSub action_3 MultDiv action_4 + (77) action_8 -> . + (45) SumOrSub -> . plus + (46) SumOrSub -> . minus - id shift and go to state 39 + end reduce using rule 77 (action_8 -> .) + id reduce using rule 77 (action_8 -> .) + read reduce using rule 77 (action_8 -> .) + print reduce using rule 77 (action_8 -> .) + if reduce using rule 77 (action_8 -> .) + do reduce using rule 77 (action_8 -> .) + swap reduce using rule 77 (action_8 -> .) + exit reduce using rule 77 (action_8 -> .) + comment reduce using rule 77 (action_8 -> .) + elif reduce using rule 77 (action_8 -> .) + else reduce using rule 77 (action_8 -> .) + plus shift and go to state 84 + minus shift and go to state 85 - Dimensional shift and go to state 91 + action_8 shift and go to state 91 + SumOrSub shift and go to state 83 state 66 - (29) RDimensional -> Dimensional action_36 . + (31) RDimensional -> RDimensional coma . Dimensional action_36 + (25) Dimensional -> . id DimensionsOrEmpty action_1 - coma reduce using rule 29 (RDimensional -> Dimensional action_36 .) - end reduce using rule 29 (RDimensional -> Dimensional action_36 .) - id reduce using rule 29 (RDimensional -> Dimensional action_36 .) - read reduce using rule 29 (RDimensional -> Dimensional action_36 .) - print reduce using rule 29 (RDimensional -> Dimensional action_36 .) - if reduce using rule 29 (RDimensional -> Dimensional action_36 .) - do reduce using rule 29 (RDimensional -> Dimensional action_36 .) - swap reduce using rule 29 (RDimensional -> Dimensional action_36 .) - exit reduce using rule 29 (RDimensional -> Dimensional action_36 .) - elif reduce using rule 29 (RDimensional -> Dimensional action_36 .) - else reduce using rule 29 (RDimensional -> Dimensional action_36 .) + id shift and go to state 40 + Dimensional shift and go to state 92 state 67 - (32) RDimOrString -> RDimOrString coma . DimOrString - (33) DimOrString -> . Dimensional action_33 - (34) DimOrString -> . string action_34 - (35) DimOrString -> . endline action_34 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (30) RDimensional -> Dimensional action_36 . - string shift and go to state 43 - endline shift and go to state 44 - id shift and go to state 39 + coma reduce using rule 30 (RDimensional -> Dimensional action_36 .) + end reduce using rule 30 (RDimensional -> Dimensional action_36 .) + id reduce using rule 30 (RDimensional -> Dimensional action_36 .) + read reduce using rule 30 (RDimensional -> Dimensional action_36 .) + print reduce using rule 30 (RDimensional -> Dimensional action_36 .) + if reduce using rule 30 (RDimensional -> Dimensional action_36 .) + do reduce using rule 30 (RDimensional -> Dimensional action_36 .) + swap reduce using rule 30 (RDimensional -> Dimensional action_36 .) + exit reduce using rule 30 (RDimensional -> Dimensional action_36 .) + comment reduce using rule 30 (RDimensional -> Dimensional action_36 .) + elif reduce using rule 30 (RDimensional -> Dimensional action_36 .) + else reduce using rule 30 (RDimensional -> Dimensional action_36 .) - DimOrString shift and go to state 92 - Dimensional shift and go to state 42 state 68 - (33) DimOrString -> Dimensional action_33 . + (33) RDimOrString -> RDimOrString coma . DimOrString + (34) DimOrString -> . Dimensional action_33 + (35) DimOrString -> . string action_34 + (36) DimOrString -> . endline action_34 + (25) Dimensional -> . id DimensionsOrEmpty action_1 - coma reduce using rule 33 (DimOrString -> Dimensional action_33 .) - end reduce using rule 33 (DimOrString -> Dimensional action_33 .) - id reduce using rule 33 (DimOrString -> Dimensional action_33 .) - read reduce using rule 33 (DimOrString -> Dimensional action_33 .) - print reduce using rule 33 (DimOrString -> Dimensional action_33 .) - if reduce using rule 33 (DimOrString -> Dimensional action_33 .) - do reduce using rule 33 (DimOrString -> Dimensional action_33 .) - swap reduce using rule 33 (DimOrString -> Dimensional action_33 .) - exit reduce using rule 33 (DimOrString -> Dimensional action_33 .) - elif reduce using rule 33 (DimOrString -> Dimensional action_33 .) - else reduce using rule 33 (DimOrString -> Dimensional action_33 .) + string shift and go to state 44 + endline shift and go to state 45 + id shift and go to state 40 + DimOrString shift and go to state 93 + Dimensional shift and go to state 43 state 69 - (34) DimOrString -> string action_34 . + (34) DimOrString -> Dimensional action_33 . - coma reduce using rule 34 (DimOrString -> string action_34 .) - end reduce using rule 34 (DimOrString -> string action_34 .) - id reduce using rule 34 (DimOrString -> string action_34 .) - read reduce using rule 34 (DimOrString -> string action_34 .) - print reduce using rule 34 (DimOrString -> string action_34 .) - if reduce using rule 34 (DimOrString -> string action_34 .) - do reduce using rule 34 (DimOrString -> string action_34 .) - swap reduce using rule 34 (DimOrString -> string action_34 .) - exit reduce using rule 34 (DimOrString -> string action_34 .) - elif reduce using rule 34 (DimOrString -> string action_34 .) - else reduce using rule 34 (DimOrString -> string action_34 .) + coma reduce using rule 34 (DimOrString -> Dimensional action_33 .) + end reduce using rule 34 (DimOrString -> Dimensional action_33 .) + id reduce using rule 34 (DimOrString -> Dimensional action_33 .) + read reduce using rule 34 (DimOrString -> Dimensional action_33 .) + print reduce using rule 34 (DimOrString -> Dimensional action_33 .) + if reduce using rule 34 (DimOrString -> Dimensional action_33 .) + do reduce using rule 34 (DimOrString -> Dimensional action_33 .) + swap reduce using rule 34 (DimOrString -> Dimensional action_33 .) + exit reduce using rule 34 (DimOrString -> Dimensional action_33 .) + comment reduce using rule 34 (DimOrString -> Dimensional action_33 .) + elif reduce using rule 34 (DimOrString -> Dimensional action_33 .) + else reduce using rule 34 (DimOrString -> Dimensional action_33 .) state 70 - (35) DimOrString -> endline action_34 . + (35) DimOrString -> string action_34 . - coma reduce using rule 35 (DimOrString -> endline action_34 .) - end reduce using rule 35 (DimOrString -> endline action_34 .) - id reduce using rule 35 (DimOrString -> endline action_34 .) - read reduce using rule 35 (DimOrString -> endline action_34 .) - print reduce using rule 35 (DimOrString -> endline action_34 .) - if reduce using rule 35 (DimOrString -> endline action_34 .) - do reduce using rule 35 (DimOrString -> endline action_34 .) - swap reduce using rule 35 (DimOrString -> endline action_34 .) - exit reduce using rule 35 (DimOrString -> endline action_34 .) - elif reduce using rule 35 (DimOrString -> endline action_34 .) - else reduce using rule 35 (DimOrString -> endline action_34 .) + coma reduce using rule 35 (DimOrString -> string action_34 .) + end reduce using rule 35 (DimOrString -> string action_34 .) + id reduce using rule 35 (DimOrString -> string action_34 .) + read reduce using rule 35 (DimOrString -> string action_34 .) + print reduce using rule 35 (DimOrString -> string action_34 .) + if reduce using rule 35 (DimOrString -> string action_34 .) + do reduce using rule 35 (DimOrString -> string action_34 .) + swap reduce using rule 35 (DimOrString -> string action_34 .) + exit reduce using rule 35 (DimOrString -> string action_34 .) + comment reduce using rule 35 (DimOrString -> string action_34 .) + elif reduce using rule 35 (DimOrString -> string action_34 .) + else reduce using rule 35 (DimOrString -> string action_34 .) state 71 - (19) S -> if action_16 Relif . ElseOrEmpty end if action_20 - (37) Relif -> Relif . elif action_18 openParen EL closedParen action_17 then B - (38) ElseOrEmpty -> . else action_19 B - (39) ElseOrEmpty -> . + (36) DimOrString -> endline action_34 . - elif shift and go to state 94 - else shift and go to state 95 - end reduce using rule 39 (ElseOrEmpty -> .) + coma reduce using rule 36 (DimOrString -> endline action_34 .) + end reduce using rule 36 (DimOrString -> endline action_34 .) + id reduce using rule 36 (DimOrString -> endline action_34 .) + read reduce using rule 36 (DimOrString -> endline action_34 .) + print reduce using rule 36 (DimOrString -> endline action_34 .) + if reduce using rule 36 (DimOrString -> endline action_34 .) + do reduce using rule 36 (DimOrString -> endline action_34 .) + swap reduce using rule 36 (DimOrString -> endline action_34 .) + exit reduce using rule 36 (DimOrString -> endline action_34 .) + comment reduce using rule 36 (DimOrString -> endline action_34 .) + elif reduce using rule 36 (DimOrString -> endline action_34 .) + else reduce using rule 36 (DimOrString -> endline action_34 .) - ElseOrEmpty shift and go to state 93 state 72 - (36) Relif -> openParen . EL closedParen action_17 then B - (52) EL -> . AND - (53) EL -> . EL or action_10 AND action_9 - (54) AND -> . Equality - (55) AND -> . AND and action_12 Equality action_11 - (56) Equality -> . EItem EQSymbols action_13 EItem action_14 - (57) Equality -> . openParen EL closedParen - (58) Equality -> . not EL action_15 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (19) S -> if action_16 Relif . ElseOrEmpty end if action_20 + (38) Relif -> Relif . elif action_18 openParen EL closedParen action_17 then B + (39) ElseOrEmpty -> . else action_19 B + (40) ElseOrEmpty -> . - openParen shift and go to state 96 - not shift and go to state 101 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + elif shift and go to state 95 + else shift and go to state 96 + end reduce using rule 40 (ElseOrEmpty -> .) - EL shift and go to state 97 - AND shift and go to state 98 - Equality shift and go to state 99 - EItem shift and go to state 100 - Dimensional shift and go to state 61 + ElseOrEmpty shift and go to state 94 state 73 - (20) S -> do id action_24 . equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do + (37) Relif -> openParen . EL closedParen action_17 then B + (53) EL -> . AND + (54) EL -> . EL or action_10 AND action_9 + (55) AND -> . Equality + (56) AND -> . AND and action_12 Equality action_11 + (57) Equality -> . EItem EQSymbols action_13 EItem action_14 + (58) Equality -> . openParen EL closedParen + (59) Equality -> . not EL action_15 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - equals shift and go to state 102 + openParen shift and go to state 97 + not shift and go to state 102 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + EL shift and go to state 98 + AND shift and go to state 99 + Equality shift and go to state 100 + EItem shift and go to state 101 + Dimensional shift and go to state 62 state 74 + (20) S -> do id action_24 . equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do + + equals shift and go to state 103 + + +state 75 + (21) S -> do then action_21 . B action_22 end do (13) B -> . B S (14) B -> . @@ -1466,28 +1525,29 @@ state 74 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) end reduce using rule 14 (B -> .) - B shift and go to state 103 - -state 75 - - (22) S -> swap Dimensional coma . Dimensional - (24) Dimensional -> . id DimensionsOrEmpty action_1 - - id shift and go to state 39 - - Dimensional shift and go to state 104 + B shift and go to state 104 state 76 - (11) F -> F subroutine id action_39 B end . subroutine action_40 + (22) S -> swap Dimensional coma . Dimensional + (25) Dimensional -> . id DimensionsOrEmpty action_1 - subroutine shift and go to state 105 + id shift and go to state 40 + Dimensional shift and go to state 105 state 77 + (11) F -> F subroutine id action_39 B end . subroutine action_40 + + subroutine shift and go to state 106 + + +state 78 + (2) V -> V Tipo Dim doubleColon Rid action_addSymbols action_32 . integer reduce using rule 2 (V -> V Tipo Dim doubleColon Rid action_addSymbols action_32 .) @@ -1501,9 +1561,10 @@ state 77 do reduce using rule 2 (V -> V Tipo Dim doubleColon Rid action_addSymbols action_32 .) swap reduce using rule 2 (V -> V Tipo Dim doubleColon Rid action_addSymbols action_32 .) exit reduce using rule 2 (V -> V Tipo Dim doubleColon Rid action_addSymbols action_32 .) + comment reduce using rule 2 (V -> V Tipo Dim doubleColon Rid action_addSymbols action_32 .) -state 78 +state 79 (5) Rid -> Rid coma id . @@ -1519,167 +1580,170 @@ state 78 do reduce using rule 5 (Rid -> Rid coma id .) swap reduce using rule 5 (Rid -> Rid coma id .) exit reduce using rule 5 (Rid -> Rid coma id .) - - -state 79 - - (9) Dim -> openBra int action_30 closedBra openBra . int action_31 closedBra - - int shift and go to state 106 + comment reduce using rule 5 (Rid -> Rid coma id .) state 80 - (51) EAParens -> openParen EA . closedParen - (43) EA -> EA . SumOrSub action_3 MultDiv action_4 - (44) SumOrSub -> . plus - (45) SumOrSub -> . minus + (9) Dim -> openBra int action_30 closedBra openBra . int action_31 closedBra - closedParen shift and go to state 107 - plus shift and go to state 83 - minus shift and go to state 84 + int shift and go to state 107 - SumOrSub shift and go to state 82 state 81 - (25) DimensionsOrEmpty -> openParen EA action_setDim1 . ComaEAOrEmpty closedParen - (27) ComaEAOrEmpty -> . coma EA action_setDim2 - (28) ComaEAOrEmpty -> . + (52) EAParens -> openParen EA . closedParen + (44) EA -> EA . SumOrSub action_3 MultDiv action_4 + (45) SumOrSub -> . plus + (46) SumOrSub -> . minus - coma shift and go to state 109 - closedParen reduce using rule 28 (ComaEAOrEmpty -> .) + closedParen shift and go to state 108 + plus shift and go to state 84 + minus shift and go to state 85 - ComaEAOrEmpty shift and go to state 108 + SumOrSub shift and go to state 83 state 82 - (43) EA -> EA SumOrSub . action_3 MultDiv action_4 - (72) action_3 -> . + (26) DimensionsOrEmpty -> openParen EA action_setDim1 . ComaEAOrEmpty closedParen + (28) ComaEAOrEmpty -> . coma EA action_setDim2 + (29) ComaEAOrEmpty -> . - openParen reduce using rule 72 (action_3 -> .) - int reduce using rule 72 (action_3 -> .) - rea reduce using rule 72 (action_3 -> .) - id reduce using rule 72 (action_3 -> .) + coma shift and go to state 110 + closedParen reduce using rule 29 (ComaEAOrEmpty -> .) - action_3 shift and go to state 110 + ComaEAOrEmpty shift and go to state 109 state 83 - (44) SumOrSub -> plus . + (44) EA -> EA SumOrSub . action_3 MultDiv action_4 + (73) action_3 -> . - openParen reduce using rule 44 (SumOrSub -> plus .) - int reduce using rule 44 (SumOrSub -> plus .) - rea reduce using rule 44 (SumOrSub -> plus .) - id reduce using rule 44 (SumOrSub -> plus .) + openParen reduce using rule 73 (action_3 -> .) + int reduce using rule 73 (action_3 -> .) + rea reduce using rule 73 (action_3 -> .) + id reduce using rule 73 (action_3 -> .) + action_3 shift and go to state 111 state 84 - (45) SumOrSub -> minus . + (45) SumOrSub -> plus . - openParen reduce using rule 45 (SumOrSub -> minus .) - int reduce using rule 45 (SumOrSub -> minus .) - rea reduce using rule 45 (SumOrSub -> minus .) - id reduce using rule 45 (SumOrSub -> minus .) + openParen reduce using rule 45 (SumOrSub -> plus .) + int reduce using rule 45 (SumOrSub -> plus .) + rea reduce using rule 45 (SumOrSub -> plus .) + id reduce using rule 45 (SumOrSub -> plus .) state 85 - (47) MultDiv -> MultDiv MDSymbols . action_5 EAParens action_6 - (74) action_5 -> . + (46) SumOrSub -> minus . - openParen reduce using rule 74 (action_5 -> .) - int reduce using rule 74 (action_5 -> .) - rea reduce using rule 74 (action_5 -> .) - id reduce using rule 74 (action_5 -> .) + openParen reduce using rule 46 (SumOrSub -> minus .) + int reduce using rule 46 (SumOrSub -> minus .) + rea reduce using rule 46 (SumOrSub -> minus .) + id reduce using rule 46 (SumOrSub -> minus .) - action_5 shift and go to state 111 state 86 - (48) MDSymbols -> mul . + (48) MultDiv -> MultDiv MDSymbols . action_5 EAParens action_6 + (75) action_5 -> . - openParen reduce using rule 48 (MDSymbols -> mul .) - int reduce using rule 48 (MDSymbols -> mul .) - rea reduce using rule 48 (MDSymbols -> mul .) - id reduce using rule 48 (MDSymbols -> mul .) + openParen reduce using rule 75 (action_5 -> .) + int reduce using rule 75 (action_5 -> .) + rea reduce using rule 75 (action_5 -> .) + id reduce using rule 75 (action_5 -> .) + action_5 shift and go to state 112 state 87 - (49) MDSymbols -> div . + (49) MDSymbols -> mul . - openParen reduce using rule 49 (MDSymbols -> div .) - int reduce using rule 49 (MDSymbols -> div .) - rea reduce using rule 49 (MDSymbols -> div .) - id reduce using rule 49 (MDSymbols -> div .) + openParen reduce using rule 49 (MDSymbols -> mul .) + int reduce using rule 49 (MDSymbols -> mul .) + rea reduce using rule 49 (MDSymbols -> mul .) + id reduce using rule 49 (MDSymbols -> mul .) state 88 - (60) EItem -> int action_2 . + (50) MDSymbols -> div . - mul reduce using rule 60 (EItem -> int action_2 .) - div reduce using rule 60 (EItem -> int action_2 .) - plus reduce using rule 60 (EItem -> int action_2 .) - minus reduce using rule 60 (EItem -> int action_2 .) - coma reduce using rule 60 (EItem -> int action_2 .) - closedParen reduce using rule 60 (EItem -> int action_2 .) - end reduce using rule 60 (EItem -> int action_2 .) - id reduce using rule 60 (EItem -> int action_2 .) - read reduce using rule 60 (EItem -> int action_2 .) - print reduce using rule 60 (EItem -> int action_2 .) - if reduce using rule 60 (EItem -> int action_2 .) - do reduce using rule 60 (EItem -> int action_2 .) - swap reduce using rule 60 (EItem -> int action_2 .) - exit reduce using rule 60 (EItem -> int action_2 .) - elif reduce using rule 60 (EItem -> int action_2 .) - else reduce using rule 60 (EItem -> int action_2 .) - less reduce using rule 60 (EItem -> int action_2 .) - more reduce using rule 60 (EItem -> int action_2 .) - doubleEquals reduce using rule 60 (EItem -> int action_2 .) - notEquals reduce using rule 60 (EItem -> int action_2 .) - lessEquals reduce using rule 60 (EItem -> int action_2 .) - moreEquals reduce using rule 60 (EItem -> int action_2 .) - then reduce using rule 60 (EItem -> int action_2 .) - and reduce using rule 60 (EItem -> int action_2 .) - or reduce using rule 60 (EItem -> int action_2 .) + openParen reduce using rule 50 (MDSymbols -> div .) + int reduce using rule 50 (MDSymbols -> div .) + rea reduce using rule 50 (MDSymbols -> div .) + id reduce using rule 50 (MDSymbols -> div .) state 89 - (61) EItem -> rea action_2_rea . + (61) EItem -> int action_2 . - mul reduce using rule 61 (EItem -> rea action_2_rea .) - div reduce using rule 61 (EItem -> rea action_2_rea .) - plus reduce using rule 61 (EItem -> rea action_2_rea .) - minus reduce using rule 61 (EItem -> rea action_2_rea .) - coma reduce using rule 61 (EItem -> rea action_2_rea .) - closedParen reduce using rule 61 (EItem -> rea action_2_rea .) - end reduce using rule 61 (EItem -> rea action_2_rea .) - id reduce using rule 61 (EItem -> rea action_2_rea .) - read reduce using rule 61 (EItem -> rea action_2_rea .) - print reduce using rule 61 (EItem -> rea action_2_rea .) - if reduce using rule 61 (EItem -> rea action_2_rea .) - do reduce using rule 61 (EItem -> rea action_2_rea .) - swap reduce using rule 61 (EItem -> rea action_2_rea .) - exit reduce using rule 61 (EItem -> rea action_2_rea .) - elif reduce using rule 61 (EItem -> rea action_2_rea .) - else reduce using rule 61 (EItem -> rea action_2_rea .) - less reduce using rule 61 (EItem -> rea action_2_rea .) - more reduce using rule 61 (EItem -> rea action_2_rea .) - doubleEquals reduce using rule 61 (EItem -> rea action_2_rea .) - notEquals reduce using rule 61 (EItem -> rea action_2_rea .) - lessEquals reduce using rule 61 (EItem -> rea action_2_rea .) - moreEquals reduce using rule 61 (EItem -> rea action_2_rea .) - then reduce using rule 61 (EItem -> rea action_2_rea .) - and reduce using rule 61 (EItem -> rea action_2_rea .) - or reduce using rule 61 (EItem -> rea action_2_rea .) + mul reduce using rule 61 (EItem -> int action_2 .) + div reduce using rule 61 (EItem -> int action_2 .) + plus reduce using rule 61 (EItem -> int action_2 .) + minus reduce using rule 61 (EItem -> int action_2 .) + coma reduce using rule 61 (EItem -> int action_2 .) + closedParen reduce using rule 61 (EItem -> int action_2 .) + end reduce using rule 61 (EItem -> int action_2 .) + id reduce using rule 61 (EItem -> int action_2 .) + read reduce using rule 61 (EItem -> int action_2 .) + print reduce using rule 61 (EItem -> int action_2 .) + if reduce using rule 61 (EItem -> int action_2 .) + do reduce using rule 61 (EItem -> int action_2 .) + swap reduce using rule 61 (EItem -> int action_2 .) + exit reduce using rule 61 (EItem -> int action_2 .) + comment reduce using rule 61 (EItem -> int action_2 .) + elif reduce using rule 61 (EItem -> int action_2 .) + else reduce using rule 61 (EItem -> int action_2 .) + less reduce using rule 61 (EItem -> int action_2 .) + more reduce using rule 61 (EItem -> int action_2 .) + doubleEquals reduce using rule 61 (EItem -> int action_2 .) + notEquals reduce using rule 61 (EItem -> int action_2 .) + lessEquals reduce using rule 61 (EItem -> int action_2 .) + moreEquals reduce using rule 61 (EItem -> int action_2 .) + then reduce using rule 61 (EItem -> int action_2 .) + and reduce using rule 61 (EItem -> int action_2 .) + or reduce using rule 61 (EItem -> int action_2 .) state 90 + (62) EItem -> rea action_2_rea . + + mul reduce using rule 62 (EItem -> rea action_2_rea .) + div reduce using rule 62 (EItem -> rea action_2_rea .) + plus reduce using rule 62 (EItem -> rea action_2_rea .) + minus reduce using rule 62 (EItem -> rea action_2_rea .) + coma reduce using rule 62 (EItem -> rea action_2_rea .) + closedParen reduce using rule 62 (EItem -> rea action_2_rea .) + end reduce using rule 62 (EItem -> rea action_2_rea .) + id reduce using rule 62 (EItem -> rea action_2_rea .) + read reduce using rule 62 (EItem -> rea action_2_rea .) + print reduce using rule 62 (EItem -> rea action_2_rea .) + if reduce using rule 62 (EItem -> rea action_2_rea .) + do reduce using rule 62 (EItem -> rea action_2_rea .) + swap reduce using rule 62 (EItem -> rea action_2_rea .) + exit reduce using rule 62 (EItem -> rea action_2_rea .) + comment reduce using rule 62 (EItem -> rea action_2_rea .) + elif reduce using rule 62 (EItem -> rea action_2_rea .) + else reduce using rule 62 (EItem -> rea action_2_rea .) + less reduce using rule 62 (EItem -> rea action_2_rea .) + more reduce using rule 62 (EItem -> rea action_2_rea .) + doubleEquals reduce using rule 62 (EItem -> rea action_2_rea .) + notEquals reduce using rule 62 (EItem -> rea action_2_rea .) + lessEquals reduce using rule 62 (EItem -> rea action_2_rea .) + moreEquals reduce using rule 62 (EItem -> rea action_2_rea .) + then reduce using rule 62 (EItem -> rea action_2_rea .) + and reduce using rule 62 (EItem -> rea action_2_rea .) + or reduce using rule 62 (EItem -> rea action_2_rea .) + + +state 91 + (15) S -> Dimensional equals EA action_8 . end reduce using rule 15 (S -> Dimensional equals EA action_8 .) @@ -1690,212 +1754,216 @@ state 90 do reduce using rule 15 (S -> Dimensional equals EA action_8 .) swap reduce using rule 15 (S -> Dimensional equals EA action_8 .) exit reduce using rule 15 (S -> Dimensional equals EA action_8 .) + comment reduce using rule 15 (S -> Dimensional equals EA action_8 .) elif reduce using rule 15 (S -> Dimensional equals EA action_8 .) else reduce using rule 15 (S -> Dimensional equals EA action_8 .) -state 91 - - (30) RDimensional -> RDimensional coma Dimensional . action_36 - (103) action_36 -> . - - coma reduce using rule 103 (action_36 -> .) - end reduce using rule 103 (action_36 -> .) - id reduce using rule 103 (action_36 -> .) - read reduce using rule 103 (action_36 -> .) - print reduce using rule 103 (action_36 -> .) - if reduce using rule 103 (action_36 -> .) - do reduce using rule 103 (action_36 -> .) - swap reduce using rule 103 (action_36 -> .) - exit reduce using rule 103 (action_36 -> .) - elif reduce using rule 103 (action_36 -> .) - else reduce using rule 103 (action_36 -> .) - - action_36 shift and go to state 112 - state 92 - (32) RDimOrString -> RDimOrString coma DimOrString . + (31) RDimensional -> RDimensional coma Dimensional . action_36 + (104) action_36 -> . - coma reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - end reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - id reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - read reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - print reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - if reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - do reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - swap reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - exit reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - elif reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) - else reduce using rule 32 (RDimOrString -> RDimOrString coma DimOrString .) + coma reduce using rule 104 (action_36 -> .) + end reduce using rule 104 (action_36 -> .) + id reduce using rule 104 (action_36 -> .) + read reduce using rule 104 (action_36 -> .) + print reduce using rule 104 (action_36 -> .) + if reduce using rule 104 (action_36 -> .) + do reduce using rule 104 (action_36 -> .) + swap reduce using rule 104 (action_36 -> .) + exit reduce using rule 104 (action_36 -> .) + comment reduce using rule 104 (action_36 -> .) + elif reduce using rule 104 (action_36 -> .) + else reduce using rule 104 (action_36 -> .) + action_36 shift and go to state 113 state 93 - (19) S -> if action_16 Relif ElseOrEmpty . end if action_20 + (33) RDimOrString -> RDimOrString coma DimOrString . - end shift and go to state 113 + coma reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + end reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + id reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + read reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + print reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + if reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + do reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + swap reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + exit reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + comment reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + elif reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) + else reduce using rule 33 (RDimOrString -> RDimOrString coma DimOrString .) state 94 - (37) Relif -> Relif elif . action_18 openParen EL closedParen action_17 then B - (86) action_18 -> . + (19) S -> if action_16 Relif ElseOrEmpty . end if action_20 - openParen reduce using rule 86 (action_18 -> .) + end shift and go to state 114 - action_18 shift and go to state 114 state 95 - (38) ElseOrEmpty -> else . action_19 B - (87) action_19 -> . + (38) Relif -> Relif elif . action_18 openParen EL closedParen action_17 then B + (87) action_18 -> . - id reduce using rule 87 (action_19 -> .) - read reduce using rule 87 (action_19 -> .) - print reduce using rule 87 (action_19 -> .) - if reduce using rule 87 (action_19 -> .) - do reduce using rule 87 (action_19 -> .) - swap reduce using rule 87 (action_19 -> .) - exit reduce using rule 87 (action_19 -> .) - end reduce using rule 87 (action_19 -> .) + openParen reduce using rule 87 (action_18 -> .) - action_19 shift and go to state 115 + action_18 shift and go to state 115 state 96 - (57) Equality -> openParen . EL closedParen - (52) EL -> . AND - (53) EL -> . EL or action_10 AND action_9 - (54) AND -> . Equality - (55) AND -> . AND and action_12 Equality action_11 - (56) Equality -> . EItem EQSymbols action_13 EItem action_14 - (57) Equality -> . openParen EL closedParen - (58) Equality -> . not EL action_15 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (39) ElseOrEmpty -> else . action_19 B + (88) action_19 -> . - openParen shift and go to state 96 - not shift and go to state 101 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + id reduce using rule 88 (action_19 -> .) + read reduce using rule 88 (action_19 -> .) + print reduce using rule 88 (action_19 -> .) + if reduce using rule 88 (action_19 -> .) + do reduce using rule 88 (action_19 -> .) + swap reduce using rule 88 (action_19 -> .) + exit reduce using rule 88 (action_19 -> .) + comment reduce using rule 88 (action_19 -> .) + end reduce using rule 88 (action_19 -> .) - EL shift and go to state 116 - AND shift and go to state 98 - Equality shift and go to state 99 - EItem shift and go to state 100 - Dimensional shift and go to state 61 + action_19 shift and go to state 116 state 97 - (36) Relif -> openParen EL . closedParen action_17 then B - (53) EL -> EL . or action_10 AND action_9 + (58) Equality -> openParen . EL closedParen + (53) EL -> . AND + (54) EL -> . EL or action_10 AND action_9 + (55) AND -> . Equality + (56) AND -> . AND and action_12 Equality action_11 + (57) Equality -> . EItem EQSymbols action_13 EItem action_14 + (58) Equality -> . openParen EL closedParen + (59) Equality -> . not EL action_15 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - closedParen shift and go to state 117 - or shift and go to state 118 + openParen shift and go to state 97 + not shift and go to state 102 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + EL shift and go to state 117 + AND shift and go to state 99 + Equality shift and go to state 100 + EItem shift and go to state 101 + Dimensional shift and go to state 62 state 98 - (52) EL -> AND . - (55) AND -> AND . and action_12 Equality action_11 + (37) Relif -> openParen EL . closedParen action_17 then B + (54) EL -> EL . or action_10 AND action_9 - ! shift/reduce conflict for and resolved as shift - closedParen reduce using rule 52 (EL -> AND .) - or reduce using rule 52 (EL -> AND .) - and shift and go to state 119 - - ! and [ reduce using rule 52 (EL -> AND .) ] + closedParen shift and go to state 118 + or shift and go to state 119 state 99 - (54) AND -> Equality . + (53) EL -> AND . + (56) AND -> AND . and action_12 Equality action_11 - and reduce using rule 54 (AND -> Equality .) - closedParen reduce using rule 54 (AND -> Equality .) - or reduce using rule 54 (AND -> Equality .) + ! shift/reduce conflict for and resolved as shift + closedParen reduce using rule 53 (EL -> AND .) + or reduce using rule 53 (EL -> AND .) + and shift and go to state 120 + + ! and [ reduce using rule 53 (EL -> AND .) ] state 100 - (56) Equality -> EItem . EQSymbols action_13 EItem action_14 - (62) EQSymbols -> . less - (63) EQSymbols -> . more - (64) EQSymbols -> . doubleEquals - (65) EQSymbols -> . notEquals - (66) EQSymbols -> . lessEquals - (67) EQSymbols -> . moreEquals + (55) AND -> Equality . - less shift and go to state 121 - more shift and go to state 122 - doubleEquals shift and go to state 123 - notEquals shift and go to state 124 - lessEquals shift and go to state 125 - moreEquals shift and go to state 126 + and reduce using rule 55 (AND -> Equality .) + closedParen reduce using rule 55 (AND -> Equality .) + or reduce using rule 55 (AND -> Equality .) - EQSymbols shift and go to state 120 state 101 - (58) Equality -> not . EL action_15 - (52) EL -> . AND - (53) EL -> . EL or action_10 AND action_9 - (54) AND -> . Equality - (55) AND -> . AND and action_12 Equality action_11 - (56) Equality -> . EItem EQSymbols action_13 EItem action_14 - (57) Equality -> . openParen EL closedParen - (58) Equality -> . not EL action_15 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (57) Equality -> EItem . EQSymbols action_13 EItem action_14 + (63) EQSymbols -> . less + (64) EQSymbols -> . more + (65) EQSymbols -> . doubleEquals + (66) EQSymbols -> . notEquals + (67) EQSymbols -> . lessEquals + (68) EQSymbols -> . moreEquals - openParen shift and go to state 96 - not shift and go to state 101 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + less shift and go to state 122 + more shift and go to state 123 + doubleEquals shift and go to state 124 + notEquals shift and go to state 125 + lessEquals shift and go to state 126 + moreEquals shift and go to state 127 - EL shift and go to state 127 - AND shift and go to state 98 - Equality shift and go to state 99 - EItem shift and go to state 100 - Dimensional shift and go to state 61 + EQSymbols shift and go to state 121 state 102 - (20) S -> do id action_24 equals . EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do - (42) EA -> . MultDiv - (43) EA -> . EA SumOrSub action_3 MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (59) Equality -> not . EL action_15 + (53) EL -> . AND + (54) EL -> . EL or action_10 AND action_9 + (55) AND -> . Equality + (56) AND -> . AND and action_12 Equality action_11 + (57) Equality -> . EItem EQSymbols action_13 EItem action_14 + (58) Equality -> . openParen EL closedParen + (59) Equality -> . not EL action_15 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + openParen shift and go to state 97 + not shift and go to state 102 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 - EA shift and go to state 128 - MultDiv shift and go to state 58 - EAParens shift and go to state 59 - EItem shift and go to state 60 - Dimensional shift and go to state 61 + EL shift and go to state 128 + AND shift and go to state 99 + Equality shift and go to state 100 + EItem shift and go to state 101 + Dimensional shift and go to state 62 state 103 + (20) S -> do id action_24 equals . EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do + (43) EA -> . MultDiv + (44) EA -> . EA SumOrSub action_3 MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 + + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + + EA shift and go to state 129 + MultDiv shift and go to state 59 + EAParens shift and go to state 60 + EItem shift and go to state 61 + Dimensional shift and go to state 62 + +state 104 + (21) S -> do then action_21 B . action_22 end do (13) B -> B . S - (90) action_22 -> . + (91) action_22 -> . (15) S -> . Dimensional equals EA action_8 (16) S -> . id parens action_41 (17) S -> . read RDimensional @@ -1905,9 +1973,10 @@ state 103 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 - end reduce using rule 90 (action_22 -> .) + end reduce using rule 91 (action_22 -> .) id shift and go to state 18 read shift and go to state 22 print shift and go to state 23 @@ -1915,12 +1984,13 @@ state 103 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 - action_22 shift and go to state 129 + action_22 shift and go to state 130 S shift and go to state 20 Dimensional shift and go to state 21 -state 104 +state 105 (22) S -> swap Dimensional coma Dimensional . @@ -1932,166 +2002,170 @@ state 104 do reduce using rule 22 (S -> swap Dimensional coma Dimensional .) swap reduce using rule 22 (S -> swap Dimensional coma Dimensional .) exit reduce using rule 22 (S -> swap Dimensional coma Dimensional .) + comment reduce using rule 22 (S -> swap Dimensional coma Dimensional .) elif reduce using rule 22 (S -> swap Dimensional coma Dimensional .) else reduce using rule 22 (S -> swap Dimensional coma Dimensional .) -state 105 - - (11) F -> F subroutine id action_39 B end subroutine . action_40 - (107) action_40 -> . - - subroutine reduce using rule 107 (action_40 -> .) - end reduce using rule 107 (action_40 -> .) - id reduce using rule 107 (action_40 -> .) - read reduce using rule 107 (action_40 -> .) - print reduce using rule 107 (action_40 -> .) - if reduce using rule 107 (action_40 -> .) - do reduce using rule 107 (action_40 -> .) - swap reduce using rule 107 (action_40 -> .) - exit reduce using rule 107 (action_40 -> .) - - action_40 shift and go to state 130 - state 106 - (9) Dim -> openBra int action_30 closedBra openBra int . action_31 closedBra - (99) action_31 -> . + (11) F -> F subroutine id action_39 B end subroutine . action_40 + (108) action_40 -> . - closedBra reduce using rule 99 (action_31 -> .) + subroutine reduce using rule 108 (action_40 -> .) + end reduce using rule 108 (action_40 -> .) + id reduce using rule 108 (action_40 -> .) + read reduce using rule 108 (action_40 -> .) + print reduce using rule 108 (action_40 -> .) + if reduce using rule 108 (action_40 -> .) + do reduce using rule 108 (action_40 -> .) + swap reduce using rule 108 (action_40 -> .) + exit reduce using rule 108 (action_40 -> .) + comment reduce using rule 108 (action_40 -> .) - action_31 shift and go to state 131 + action_40 shift and go to state 131 state 107 - (51) EAParens -> openParen EA closedParen . + (9) Dim -> openBra int action_30 closedBra openBra int . action_31 closedBra + (100) action_31 -> . - mul reduce using rule 51 (EAParens -> openParen EA closedParen .) - div reduce using rule 51 (EAParens -> openParen EA closedParen .) - plus reduce using rule 51 (EAParens -> openParen EA closedParen .) - minus reduce using rule 51 (EAParens -> openParen EA closedParen .) - coma reduce using rule 51 (EAParens -> openParen EA closedParen .) - closedParen reduce using rule 51 (EAParens -> openParen EA closedParen .) - end reduce using rule 51 (EAParens -> openParen EA closedParen .) - id reduce using rule 51 (EAParens -> openParen EA closedParen .) - read reduce using rule 51 (EAParens -> openParen EA closedParen .) - print reduce using rule 51 (EAParens -> openParen EA closedParen .) - if reduce using rule 51 (EAParens -> openParen EA closedParen .) - do reduce using rule 51 (EAParens -> openParen EA closedParen .) - swap reduce using rule 51 (EAParens -> openParen EA closedParen .) - exit reduce using rule 51 (EAParens -> openParen EA closedParen .) - elif reduce using rule 51 (EAParens -> openParen EA closedParen .) - else reduce using rule 51 (EAParens -> openParen EA closedParen .) - then reduce using rule 51 (EAParens -> openParen EA closedParen .) + closedBra reduce using rule 100 (action_31 -> .) + action_31 shift and go to state 132 state 108 - (25) DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty . closedParen + (52) EAParens -> openParen EA closedParen . - closedParen shift and go to state 132 + mul reduce using rule 52 (EAParens -> openParen EA closedParen .) + div reduce using rule 52 (EAParens -> openParen EA closedParen .) + plus reduce using rule 52 (EAParens -> openParen EA closedParen .) + minus reduce using rule 52 (EAParens -> openParen EA closedParen .) + coma reduce using rule 52 (EAParens -> openParen EA closedParen .) + closedParen reduce using rule 52 (EAParens -> openParen EA closedParen .) + end reduce using rule 52 (EAParens -> openParen EA closedParen .) + id reduce using rule 52 (EAParens -> openParen EA closedParen .) + read reduce using rule 52 (EAParens -> openParen EA closedParen .) + print reduce using rule 52 (EAParens -> openParen EA closedParen .) + if reduce using rule 52 (EAParens -> openParen EA closedParen .) + do reduce using rule 52 (EAParens -> openParen EA closedParen .) + swap reduce using rule 52 (EAParens -> openParen EA closedParen .) + exit reduce using rule 52 (EAParens -> openParen EA closedParen .) + comment reduce using rule 52 (EAParens -> openParen EA closedParen .) + elif reduce using rule 52 (EAParens -> openParen EA closedParen .) + else reduce using rule 52 (EAParens -> openParen EA closedParen .) + then reduce using rule 52 (EAParens -> openParen EA closedParen .) state 109 - (27) ComaEAOrEmpty -> coma . EA action_setDim2 - (42) EA -> . MultDiv - (43) EA -> . EA SumOrSub action_3 MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (26) DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty . closedParen - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + closedParen shift and go to state 133 - EA shift and go to state 133 - MultDiv shift and go to state 58 - EAParens shift and go to state 59 - EItem shift and go to state 60 - Dimensional shift and go to state 61 state 110 - (43) EA -> EA SumOrSub action_3 . MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (28) ComaEAOrEmpty -> coma . EA action_setDim2 + (43) EA -> . MultDiv + (44) EA -> . EA SumOrSub action_3 MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 - MultDiv shift and go to state 134 - EAParens shift and go to state 59 - EItem shift and go to state 60 - Dimensional shift and go to state 61 + EA shift and go to state 134 + MultDiv shift and go to state 59 + EAParens shift and go to state 60 + EItem shift and go to state 61 + Dimensional shift and go to state 62 state 111 - (47) MultDiv -> MultDiv MDSymbols action_5 . EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (44) EA -> EA SumOrSub action_3 . MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 - EAParens shift and go to state 135 - EItem shift and go to state 60 - Dimensional shift and go to state 61 + MultDiv shift and go to state 135 + EAParens shift and go to state 60 + EItem shift and go to state 61 + Dimensional shift and go to state 62 state 112 - (30) RDimensional -> RDimensional coma Dimensional action_36 . + (48) MultDiv -> MultDiv MDSymbols action_5 . EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - coma reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - end reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - id reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - read reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - print reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - if reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - do reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - swap reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - exit reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - elif reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) - else reduce using rule 30 (RDimensional -> RDimensional coma Dimensional action_36 .) + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + EAParens shift and go to state 136 + EItem shift and go to state 61 + Dimensional shift and go to state 62 state 113 - (19) S -> if action_16 Relif ElseOrEmpty end . if action_20 + (31) RDimensional -> RDimensional coma Dimensional action_36 . - if shift and go to state 136 + coma reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + end reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + id reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + read reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + print reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + if reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + do reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + swap reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + exit reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + comment reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + elif reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) + else reduce using rule 31 (RDimensional -> RDimensional coma Dimensional action_36 .) state 114 - (37) Relif -> Relif elif action_18 . openParen EL closedParen action_17 then B + (19) S -> if action_16 Relif ElseOrEmpty end . if action_20 - openParen shift and go to state 137 + if shift and go to state 137 state 115 - (38) ElseOrEmpty -> else action_19 . B + (38) Relif -> Relif elif action_18 . openParen EL closedParen action_17 then B + + openParen shift and go to state 138 + + +state 116 + + (39) ElseOrEmpty -> else action_19 . B (13) B -> . B S (14) B -> . @@ -2102,158 +2176,159 @@ state 115 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) end reduce using rule 14 (B -> .) - B shift and go to state 138 - -state 116 - - (57) Equality -> openParen EL . closedParen - (53) EL -> EL . or action_10 AND action_9 - - closedParen shift and go to state 139 - or shift and go to state 118 - + B shift and go to state 139 state 117 - (36) Relif -> openParen EL closedParen . action_17 then B - (85) action_17 -> . + (58) Equality -> openParen EL . closedParen + (54) EL -> EL . or action_10 AND action_9 - then reduce using rule 85 (action_17 -> .) + closedParen shift and go to state 140 + or shift and go to state 119 - action_17 shift and go to state 140 state 118 - (53) EL -> EL or . action_10 AND action_9 - (78) action_10 -> . + (37) Relif -> openParen EL closedParen . action_17 then B + (86) action_17 -> . - openParen reduce using rule 78 (action_10 -> .) - not reduce using rule 78 (action_10 -> .) - int reduce using rule 78 (action_10 -> .) - rea reduce using rule 78 (action_10 -> .) - id reduce using rule 78 (action_10 -> .) + then reduce using rule 86 (action_17 -> .) - action_10 shift and go to state 141 + action_17 shift and go to state 141 state 119 - (55) AND -> AND and . action_12 Equality action_11 - (80) action_12 -> . + (54) EL -> EL or . action_10 AND action_9 + (79) action_10 -> . - openParen reduce using rule 80 (action_12 -> .) - not reduce using rule 80 (action_12 -> .) - int reduce using rule 80 (action_12 -> .) - rea reduce using rule 80 (action_12 -> .) - id reduce using rule 80 (action_12 -> .) + openParen reduce using rule 79 (action_10 -> .) + not reduce using rule 79 (action_10 -> .) + int reduce using rule 79 (action_10 -> .) + rea reduce using rule 79 (action_10 -> .) + id reduce using rule 79 (action_10 -> .) - action_12 shift and go to state 142 + action_10 shift and go to state 142 state 120 - (56) Equality -> EItem EQSymbols . action_13 EItem action_14 - (81) action_13 -> . + (56) AND -> AND and . action_12 Equality action_11 + (81) action_12 -> . - int reduce using rule 81 (action_13 -> .) - rea reduce using rule 81 (action_13 -> .) - id reduce using rule 81 (action_13 -> .) + openParen reduce using rule 81 (action_12 -> .) + not reduce using rule 81 (action_12 -> .) + int reduce using rule 81 (action_12 -> .) + rea reduce using rule 81 (action_12 -> .) + id reduce using rule 81 (action_12 -> .) - action_13 shift and go to state 143 + action_12 shift and go to state 143 state 121 - (62) EQSymbols -> less . + (57) Equality -> EItem EQSymbols . action_13 EItem action_14 + (82) action_13 -> . - int reduce using rule 62 (EQSymbols -> less .) - rea reduce using rule 62 (EQSymbols -> less .) - id reduce using rule 62 (EQSymbols -> less .) + int reduce using rule 82 (action_13 -> .) + rea reduce using rule 82 (action_13 -> .) + id reduce using rule 82 (action_13 -> .) + action_13 shift and go to state 144 state 122 - (63) EQSymbols -> more . + (63) EQSymbols -> less . - int reduce using rule 63 (EQSymbols -> more .) - rea reduce using rule 63 (EQSymbols -> more .) - id reduce using rule 63 (EQSymbols -> more .) + int reduce using rule 63 (EQSymbols -> less .) + rea reduce using rule 63 (EQSymbols -> less .) + id reduce using rule 63 (EQSymbols -> less .) state 123 - (64) EQSymbols -> doubleEquals . + (64) EQSymbols -> more . - int reduce using rule 64 (EQSymbols -> doubleEquals .) - rea reduce using rule 64 (EQSymbols -> doubleEquals .) - id reduce using rule 64 (EQSymbols -> doubleEquals .) + int reduce using rule 64 (EQSymbols -> more .) + rea reduce using rule 64 (EQSymbols -> more .) + id reduce using rule 64 (EQSymbols -> more .) state 124 - (65) EQSymbols -> notEquals . + (65) EQSymbols -> doubleEquals . - int reduce using rule 65 (EQSymbols -> notEquals .) - rea reduce using rule 65 (EQSymbols -> notEquals .) - id reduce using rule 65 (EQSymbols -> notEquals .) + int reduce using rule 65 (EQSymbols -> doubleEquals .) + rea reduce using rule 65 (EQSymbols -> doubleEquals .) + id reduce using rule 65 (EQSymbols -> doubleEquals .) state 125 - (66) EQSymbols -> lessEquals . + (66) EQSymbols -> notEquals . - int reduce using rule 66 (EQSymbols -> lessEquals .) - rea reduce using rule 66 (EQSymbols -> lessEquals .) - id reduce using rule 66 (EQSymbols -> lessEquals .) + int reduce using rule 66 (EQSymbols -> notEquals .) + rea reduce using rule 66 (EQSymbols -> notEquals .) + id reduce using rule 66 (EQSymbols -> notEquals .) state 126 - (67) EQSymbols -> moreEquals . + (67) EQSymbols -> lessEquals . - int reduce using rule 67 (EQSymbols -> moreEquals .) - rea reduce using rule 67 (EQSymbols -> moreEquals .) - id reduce using rule 67 (EQSymbols -> moreEquals .) + int reduce using rule 67 (EQSymbols -> lessEquals .) + rea reduce using rule 67 (EQSymbols -> lessEquals .) + id reduce using rule 67 (EQSymbols -> lessEquals .) state 127 - (58) Equality -> not EL . action_15 - (53) EL -> EL . or action_10 AND action_9 - (83) action_15 -> . + (68) EQSymbols -> moreEquals . - ! shift/reduce conflict for or resolved as shift - or shift and go to state 118 - and reduce using rule 83 (action_15 -> .) - closedParen reduce using rule 83 (action_15 -> .) + int reduce using rule 68 (EQSymbols -> moreEquals .) + rea reduce using rule 68 (EQSymbols -> moreEquals .) + id reduce using rule 68 (EQSymbols -> moreEquals .) - ! or [ reduce using rule 83 (action_15 -> .) ] - - action_15 shift and go to state 144 state 128 - (20) S -> do id action_24 equals EA . action_25 coma EA action_26 IntOrEmpty then B action_29 end do - (43) EA -> EA . SumOrSub action_3 MultDiv action_4 - (93) action_25 -> . - (44) SumOrSub -> . plus - (45) SumOrSub -> . minus + (59) Equality -> not EL . action_15 + (54) EL -> EL . or action_10 AND action_9 + (84) action_15 -> . - coma reduce using rule 93 (action_25 -> .) - plus shift and go to state 83 - minus shift and go to state 84 + ! shift/reduce conflict for or resolved as shift + or shift and go to state 119 + and reduce using rule 84 (action_15 -> .) + closedParen reduce using rule 84 (action_15 -> .) - action_25 shift and go to state 145 - SumOrSub shift and go to state 82 + ! or [ reduce using rule 84 (action_15 -> .) ] + + action_15 shift and go to state 145 state 129 - (21) S -> do then action_21 B action_22 . end do + (20) S -> do id action_24 equals EA . action_25 coma EA action_26 IntOrEmpty then B action_29 end do + (44) EA -> EA . SumOrSub action_3 MultDiv action_4 + (94) action_25 -> . + (45) SumOrSub -> . plus + (46) SumOrSub -> . minus - end shift and go to state 146 + coma reduce using rule 94 (action_25 -> .) + plus shift and go to state 84 + minus shift and go to state 85 + action_25 shift and go to state 146 + SumOrSub shift and go to state 83 state 130 + (21) S -> do then action_21 B action_22 . end do + + end shift and go to state 147 + + +state 131 + (11) F -> F subroutine id action_39 B end subroutine action_40 . subroutine reduce using rule 11 (F -> F subroutine id action_39 B end subroutine action_40 .) @@ -2265,164 +2340,169 @@ state 130 do reduce using rule 11 (F -> F subroutine id action_39 B end subroutine action_40 .) swap reduce using rule 11 (F -> F subroutine id action_39 B end subroutine action_40 .) exit reduce using rule 11 (F -> F subroutine id action_39 B end subroutine action_40 .) - - -state 131 - - (9) Dim -> openBra int action_30 closedBra openBra int action_31 . closedBra - - closedBra shift and go to state 147 + comment reduce using rule 11 (F -> F subroutine id action_39 B end subroutine action_40 .) state 132 - (25) DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen . + (9) Dim -> openBra int action_30 closedBra openBra int action_31 . closedBra - equals reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - coma reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - end reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - id reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - read reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - print reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - if reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - do reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - swap reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - exit reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - elif reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - else reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - mul reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - div reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - plus reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - minus reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - closedParen reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - less reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - more reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - doubleEquals reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - notEquals reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - lessEquals reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - moreEquals reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - then reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - and reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - or reduce using rule 25 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + closedBra shift and go to state 148 state 133 - (27) ComaEAOrEmpty -> coma EA . action_setDim2 - (43) EA -> EA . SumOrSub action_3 MultDiv action_4 - (110) action_setDim2 -> . - (44) SumOrSub -> . plus - (45) SumOrSub -> . minus + (26) DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen . - closedParen reduce using rule 110 (action_setDim2 -> .) - plus shift and go to state 83 - minus shift and go to state 84 + equals reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + coma reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + end reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + id reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + read reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + print reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + if reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + do reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + swap reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + exit reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + comment reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + elif reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + else reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + mul reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + div reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + plus reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + minus reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + closedParen reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + less reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + more reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + doubleEquals reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + notEquals reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + lessEquals reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + moreEquals reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + then reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + and reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) + or reduce using rule 26 (DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen .) - action_setDim2 shift and go to state 148 - SumOrSub shift and go to state 82 state 134 - (43) EA -> EA SumOrSub action_3 MultDiv . action_4 - (47) MultDiv -> MultDiv . MDSymbols action_5 EAParens action_6 - (73) action_4 -> . - (48) MDSymbols -> . mul - (49) MDSymbols -> . div + (28) ComaEAOrEmpty -> coma EA . action_setDim2 + (44) EA -> EA . SumOrSub action_3 MultDiv action_4 + (111) action_setDim2 -> . + (45) SumOrSub -> . plus + (46) SumOrSub -> . minus - plus reduce using rule 73 (action_4 -> .) - minus reduce using rule 73 (action_4 -> .) - coma reduce using rule 73 (action_4 -> .) - closedParen reduce using rule 73 (action_4 -> .) - end reduce using rule 73 (action_4 -> .) - id reduce using rule 73 (action_4 -> .) - read reduce using rule 73 (action_4 -> .) - print reduce using rule 73 (action_4 -> .) - if reduce using rule 73 (action_4 -> .) - do reduce using rule 73 (action_4 -> .) - swap reduce using rule 73 (action_4 -> .) - exit reduce using rule 73 (action_4 -> .) - elif reduce using rule 73 (action_4 -> .) - else reduce using rule 73 (action_4 -> .) - then reduce using rule 73 (action_4 -> .) - mul shift and go to state 86 - div shift and go to state 87 + closedParen reduce using rule 111 (action_setDim2 -> .) + plus shift and go to state 84 + minus shift and go to state 85 - action_4 shift and go to state 149 - MDSymbols shift and go to state 85 + action_setDim2 shift and go to state 149 + SumOrSub shift and go to state 83 state 135 - (47) MultDiv -> MultDiv MDSymbols action_5 EAParens . action_6 - (75) action_6 -> . + (44) EA -> EA SumOrSub action_3 MultDiv . action_4 + (48) MultDiv -> MultDiv . MDSymbols action_5 EAParens action_6 + (74) action_4 -> . + (49) MDSymbols -> . mul + (50) MDSymbols -> . div - mul reduce using rule 75 (action_6 -> .) - div reduce using rule 75 (action_6 -> .) - plus reduce using rule 75 (action_6 -> .) - minus reduce using rule 75 (action_6 -> .) - coma reduce using rule 75 (action_6 -> .) - closedParen reduce using rule 75 (action_6 -> .) - end reduce using rule 75 (action_6 -> .) - id reduce using rule 75 (action_6 -> .) - read reduce using rule 75 (action_6 -> .) - print reduce using rule 75 (action_6 -> .) - if reduce using rule 75 (action_6 -> .) - do reduce using rule 75 (action_6 -> .) - swap reduce using rule 75 (action_6 -> .) - exit reduce using rule 75 (action_6 -> .) - elif reduce using rule 75 (action_6 -> .) - else reduce using rule 75 (action_6 -> .) - then reduce using rule 75 (action_6 -> .) + plus reduce using rule 74 (action_4 -> .) + minus reduce using rule 74 (action_4 -> .) + coma reduce using rule 74 (action_4 -> .) + closedParen reduce using rule 74 (action_4 -> .) + end reduce using rule 74 (action_4 -> .) + id reduce using rule 74 (action_4 -> .) + read reduce using rule 74 (action_4 -> .) + print reduce using rule 74 (action_4 -> .) + if reduce using rule 74 (action_4 -> .) + do reduce using rule 74 (action_4 -> .) + swap reduce using rule 74 (action_4 -> .) + exit reduce using rule 74 (action_4 -> .) + comment reduce using rule 74 (action_4 -> .) + elif reduce using rule 74 (action_4 -> .) + else reduce using rule 74 (action_4 -> .) + then reduce using rule 74 (action_4 -> .) + mul shift and go to state 87 + div shift and go to state 88 - action_6 shift and go to state 150 + action_4 shift and go to state 150 + MDSymbols shift and go to state 86 state 136 - (19) S -> if action_16 Relif ElseOrEmpty end if . action_20 - (88) action_20 -> . + (48) MultDiv -> MultDiv MDSymbols action_5 EAParens . action_6 + (76) action_6 -> . - end reduce using rule 88 (action_20 -> .) - id reduce using rule 88 (action_20 -> .) - read reduce using rule 88 (action_20 -> .) - print reduce using rule 88 (action_20 -> .) - if reduce using rule 88 (action_20 -> .) - do reduce using rule 88 (action_20 -> .) - swap reduce using rule 88 (action_20 -> .) - exit reduce using rule 88 (action_20 -> .) - elif reduce using rule 88 (action_20 -> .) - else reduce using rule 88 (action_20 -> .) + mul reduce using rule 76 (action_6 -> .) + div reduce using rule 76 (action_6 -> .) + plus reduce using rule 76 (action_6 -> .) + minus reduce using rule 76 (action_6 -> .) + coma reduce using rule 76 (action_6 -> .) + closedParen reduce using rule 76 (action_6 -> .) + end reduce using rule 76 (action_6 -> .) + id reduce using rule 76 (action_6 -> .) + read reduce using rule 76 (action_6 -> .) + print reduce using rule 76 (action_6 -> .) + if reduce using rule 76 (action_6 -> .) + do reduce using rule 76 (action_6 -> .) + swap reduce using rule 76 (action_6 -> .) + exit reduce using rule 76 (action_6 -> .) + comment reduce using rule 76 (action_6 -> .) + elif reduce using rule 76 (action_6 -> .) + else reduce using rule 76 (action_6 -> .) + then reduce using rule 76 (action_6 -> .) - action_20 shift and go to state 151 + action_6 shift and go to state 151 state 137 - (37) Relif -> Relif elif action_18 openParen . EL closedParen action_17 then B - (52) EL -> . AND - (53) EL -> . EL or action_10 AND action_9 - (54) AND -> . Equality - (55) AND -> . AND and action_12 Equality action_11 - (56) Equality -> . EItem EQSymbols action_13 EItem action_14 - (57) Equality -> . openParen EL closedParen - (58) Equality -> . not EL action_15 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (19) S -> if action_16 Relif ElseOrEmpty end if . action_20 + (89) action_20 -> . - openParen shift and go to state 96 - not shift and go to state 101 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + end reduce using rule 89 (action_20 -> .) + id reduce using rule 89 (action_20 -> .) + read reduce using rule 89 (action_20 -> .) + print reduce using rule 89 (action_20 -> .) + if reduce using rule 89 (action_20 -> .) + do reduce using rule 89 (action_20 -> .) + swap reduce using rule 89 (action_20 -> .) + exit reduce using rule 89 (action_20 -> .) + comment reduce using rule 89 (action_20 -> .) + elif reduce using rule 89 (action_20 -> .) + else reduce using rule 89 (action_20 -> .) - EL shift and go to state 152 - AND shift and go to state 98 - Equality shift and go to state 99 - EItem shift and go to state 100 - Dimensional shift and go to state 61 + action_20 shift and go to state 152 state 138 - (38) ElseOrEmpty -> else action_19 B . + (38) Relif -> Relif elif action_18 openParen . EL closedParen action_17 then B + (53) EL -> . AND + (54) EL -> . EL or action_10 AND action_9 + (55) AND -> . Equality + (56) AND -> . AND and action_12 Equality action_11 + (57) Equality -> . EItem EQSymbols action_13 EItem action_14 + (58) Equality -> . openParen EL closedParen + (59) Equality -> . not EL action_15 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 + + openParen shift and go to state 97 + not shift and go to state 102 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + + EL shift and go to state 153 + AND shift and go to state 99 + Equality shift and go to state 100 + EItem shift and go to state 101 + Dimensional shift and go to state 62 + +state 139 + + (39) ElseOrEmpty -> else action_19 B . (13) B -> B . S (15) S -> . Dimensional equals EA action_8 (16) S -> . id parens action_41 @@ -2433,9 +2513,10 @@ state 138 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 - end reduce using rule 38 (ElseOrEmpty -> else action_19 B .) + end reduce using rule 39 (ElseOrEmpty -> else action_19 B .) id shift and go to state 18 read shift and go to state 22 print shift and go to state 23 @@ -2443,169 +2524,172 @@ state 138 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 S shift and go to state 20 Dimensional shift and go to state 21 -state 139 - - (57) Equality -> openParen EL closedParen . - - and reduce using rule 57 (Equality -> openParen EL closedParen .) - closedParen reduce using rule 57 (Equality -> openParen EL closedParen .) - or reduce using rule 57 (Equality -> openParen EL closedParen .) - - state 140 - (36) Relif -> openParen EL closedParen action_17 . then B + (58) Equality -> openParen EL closedParen . - then shift and go to state 153 + and reduce using rule 58 (Equality -> openParen EL closedParen .) + closedParen reduce using rule 58 (Equality -> openParen EL closedParen .) + or reduce using rule 58 (Equality -> openParen EL closedParen .) state 141 - (53) EL -> EL or action_10 . AND action_9 - (54) AND -> . Equality - (55) AND -> . AND and action_12 Equality action_11 - (56) Equality -> . EItem EQSymbols action_13 EItem action_14 - (57) Equality -> . openParen EL closedParen - (58) Equality -> . not EL action_15 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (37) Relif -> openParen EL closedParen action_17 . then B - openParen shift and go to state 96 - not shift and go to state 101 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + then shift and go to state 154 - AND shift and go to state 154 - Equality shift and go to state 99 - EItem shift and go to state 100 - Dimensional shift and go to state 61 state 142 - (55) AND -> AND and action_12 . Equality action_11 - (56) Equality -> . EItem EQSymbols action_13 EItem action_14 - (57) Equality -> . openParen EL closedParen - (58) Equality -> . not EL action_15 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (54) EL -> EL or action_10 . AND action_9 + (55) AND -> . Equality + (56) AND -> . AND and action_12 Equality action_11 + (57) Equality -> . EItem EQSymbols action_13 EItem action_14 + (58) Equality -> . openParen EL closedParen + (59) Equality -> . not EL action_15 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - openParen shift and go to state 96 - not shift and go to state 101 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + openParen shift and go to state 97 + not shift and go to state 102 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 - Equality shift and go to state 155 - EItem shift and go to state 100 - Dimensional shift and go to state 61 + AND shift and go to state 155 + Equality shift and go to state 100 + EItem shift and go to state 101 + Dimensional shift and go to state 62 state 143 - (56) Equality -> EItem EQSymbols action_13 . EItem action_14 - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (56) AND -> AND and action_12 . Equality action_11 + (57) Equality -> . EItem EQSymbols action_13 EItem action_14 + (58) Equality -> . openParen EL closedParen + (59) Equality -> . not EL action_15 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + openParen shift and go to state 97 + not shift and go to state 102 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 - EItem shift and go to state 156 - Dimensional shift and go to state 61 + Equality shift and go to state 156 + EItem shift and go to state 101 + Dimensional shift and go to state 62 state 144 - (58) Equality -> not EL action_15 . + (57) Equality -> EItem EQSymbols action_13 . EItem action_14 + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 - and reduce using rule 58 (Equality -> not EL action_15 .) - closedParen reduce using rule 58 (Equality -> not EL action_15 .) - or reduce using rule 58 (Equality -> not EL action_15 .) + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + EItem shift and go to state 157 + Dimensional shift and go to state 62 state 145 - (20) S -> do id action_24 equals EA action_25 . coma EA action_26 IntOrEmpty then B action_29 end do + (59) Equality -> not EL action_15 . - coma shift and go to state 157 + and reduce using rule 59 (Equality -> not EL action_15 .) + closedParen reduce using rule 59 (Equality -> not EL action_15 .) + or reduce using rule 59 (Equality -> not EL action_15 .) state 146 - (21) S -> do then action_21 B action_22 end . do + (20) S -> do id action_24 equals EA action_25 . coma EA action_26 IntOrEmpty then B action_29 end do - do shift and go to state 158 + coma shift and go to state 158 state 147 + (21) S -> do then action_21 B action_22 end . do + + do shift and go to state 159 + + +state 148 + (9) Dim -> openBra int action_30 closedBra openBra int action_31 closedBra . doubleColon reduce using rule 9 (Dim -> openBra int action_30 closedBra openBra int action_31 closedBra .) -state 148 - - (27) ComaEAOrEmpty -> coma EA action_setDim2 . - - closedParen reduce using rule 27 (ComaEAOrEmpty -> coma EA action_setDim2 .) - - state 149 - (43) EA -> EA SumOrSub action_3 MultDiv action_4 . + (28) ComaEAOrEmpty -> coma EA action_setDim2 . - plus reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - minus reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - coma reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - closedParen reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - end reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - id reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - read reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - print reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - if reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - do reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - swap reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - exit reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - elif reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - else reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) - then reduce using rule 43 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + closedParen reduce using rule 28 (ComaEAOrEmpty -> coma EA action_setDim2 .) state 150 - (47) MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 . + (44) EA -> EA SumOrSub action_3 MultDiv action_4 . - mul reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - div reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - plus reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - minus reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - coma reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - closedParen reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - end reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - id reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - read reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - print reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - if reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - do reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - swap reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - exit reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - elif reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - else reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) - then reduce using rule 47 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + plus reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + minus reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + coma reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + closedParen reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + end reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + id reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + read reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + print reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + if reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + do reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + swap reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + exit reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + comment reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + elif reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + else reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) + then reduce using rule 44 (EA -> EA SumOrSub action_3 MultDiv action_4 .) state 151 + (48) MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 . + + mul reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + div reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + plus reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + minus reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + coma reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + closedParen reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + end reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + id reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + read reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + print reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + if reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + do reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + swap reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + exit reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + comment reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + elif reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + else reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + then reduce using rule 48 (MultDiv -> MultDiv MDSymbols action_5 EAParens action_6 .) + + +state 152 + (19) S -> if action_16 Relif ElseOrEmpty end if action_20 . end reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) @@ -2616,22 +2700,23 @@ state 151 do reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) swap reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) exit reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) + comment reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) elif reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) else reduce using rule 19 (S -> if action_16 Relif ElseOrEmpty end if action_20 .) -state 152 - - (37) Relif -> Relif elif action_18 openParen EL . closedParen action_17 then B - (53) EL -> EL . or action_10 AND action_9 - - closedParen shift and go to state 159 - or shift and go to state 118 - - state 153 - (36) Relif -> openParen EL closedParen action_17 then . B + (38) Relif -> Relif elif action_18 openParen EL . closedParen action_17 then B + (54) EL -> EL . or action_10 AND action_9 + + closedParen shift and go to state 160 + or shift and go to state 119 + + +state 154 + + (37) Relif -> openParen EL closedParen action_17 then . B (13) B -> . B S (14) B -> . @@ -2642,76 +2727,77 @@ state 153 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) elif reduce using rule 14 (B -> .) else reduce using rule 14 (B -> .) end reduce using rule 14 (B -> .) - B shift and go to state 160 - -state 154 - - (53) EL -> EL or action_10 AND . action_9 - (55) AND -> AND . and action_12 Equality action_11 - (77) action_9 -> . - - ! shift/reduce conflict for and resolved as shift - and shift and go to state 119 - closedParen reduce using rule 77 (action_9 -> .) - or reduce using rule 77 (action_9 -> .) - - ! and [ reduce using rule 77 (action_9 -> .) ] - - action_9 shift and go to state 161 + B shift and go to state 161 state 155 - (55) AND -> AND and action_12 Equality . action_11 - (79) action_11 -> . + (54) EL -> EL or action_10 AND . action_9 + (56) AND -> AND . and action_12 Equality action_11 + (78) action_9 -> . - and reduce using rule 79 (action_11 -> .) - closedParen reduce using rule 79 (action_11 -> .) - or reduce using rule 79 (action_11 -> .) + ! shift/reduce conflict for and resolved as shift + and shift and go to state 120 + closedParen reduce using rule 78 (action_9 -> .) + or reduce using rule 78 (action_9 -> .) - action_11 shift and go to state 162 + ! and [ reduce using rule 78 (action_9 -> .) ] + + action_9 shift and go to state 162 state 156 - (56) Equality -> EItem EQSymbols action_13 EItem . action_14 - (82) action_14 -> . + (56) AND -> AND and action_12 Equality . action_11 + (80) action_11 -> . - and reduce using rule 82 (action_14 -> .) - closedParen reduce using rule 82 (action_14 -> .) - or reduce using rule 82 (action_14 -> .) + and reduce using rule 80 (action_11 -> .) + closedParen reduce using rule 80 (action_11 -> .) + or reduce using rule 80 (action_11 -> .) - action_14 shift and go to state 163 + action_11 shift and go to state 163 state 157 - (20) S -> do id action_24 equals EA action_25 coma . EA action_26 IntOrEmpty then B action_29 end do - (42) EA -> . MultDiv - (43) EA -> . EA SumOrSub action_3 MultDiv action_4 - (46) MultDiv -> . EAParens - (47) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 - (50) EAParens -> . EItem - (51) EAParens -> . openParen EA closedParen - (59) EItem -> . Dimensional - (60) EItem -> . int action_2 - (61) EItem -> . rea action_2_rea - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (57) Equality -> EItem EQSymbols action_13 EItem . action_14 + (83) action_14 -> . - openParen shift and go to state 56 - int shift and go to state 62 - rea shift and go to state 63 - id shift and go to state 39 + and reduce using rule 83 (action_14 -> .) + closedParen reduce using rule 83 (action_14 -> .) + or reduce using rule 83 (action_14 -> .) - EA shift and go to state 164 - MultDiv shift and go to state 58 - EAParens shift and go to state 59 - EItem shift and go to state 60 - Dimensional shift and go to state 61 + action_14 shift and go to state 164 state 158 + (20) S -> do id action_24 equals EA action_25 coma . EA action_26 IntOrEmpty then B action_29 end do + (43) EA -> . MultDiv + (44) EA -> . EA SumOrSub action_3 MultDiv action_4 + (47) MultDiv -> . EAParens + (48) MultDiv -> . MultDiv MDSymbols action_5 EAParens action_6 + (51) EAParens -> . EItem + (52) EAParens -> . openParen EA closedParen + (60) EItem -> . Dimensional + (61) EItem -> . int action_2 + (62) EItem -> . rea action_2_rea + (25) Dimensional -> . id DimensionsOrEmpty action_1 + + openParen shift and go to state 57 + int shift and go to state 63 + rea shift and go to state 64 + id shift and go to state 40 + + EA shift and go to state 165 + MultDiv shift and go to state 59 + EAParens shift and go to state 60 + EItem shift and go to state 61 + Dimensional shift and go to state 62 + +state 159 + (21) S -> do then action_21 B action_22 end do . end reduce using rule 21 (S -> do then action_21 B action_22 end do .) @@ -2722,22 +2808,23 @@ state 158 do reduce using rule 21 (S -> do then action_21 B action_22 end do .) swap reduce using rule 21 (S -> do then action_21 B action_22 end do .) exit reduce using rule 21 (S -> do then action_21 B action_22 end do .) + comment reduce using rule 21 (S -> do then action_21 B action_22 end do .) elif reduce using rule 21 (S -> do then action_21 B action_22 end do .) else reduce using rule 21 (S -> do then action_21 B action_22 end do .) -state 159 - - (37) Relif -> Relif elif action_18 openParen EL closedParen . action_17 then B - (85) action_17 -> . - - then reduce using rule 85 (action_17 -> .) - - action_17 shift and go to state 165 - state 160 - (36) Relif -> openParen EL closedParen action_17 then B . + (38) Relif -> Relif elif action_18 openParen EL closedParen . action_17 then B + (86) action_17 -> . + + then reduce using rule 86 (action_17 -> .) + + action_17 shift and go to state 166 + +state 161 + + (37) Relif -> openParen EL closedParen action_17 then B . (13) B -> B . S (15) S -> . Dimensional equals EA action_8 (16) S -> . id parens action_41 @@ -2748,11 +2835,12 @@ state 160 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 - elif reduce using rule 36 (Relif -> openParen EL closedParen action_17 then B .) - else reduce using rule 36 (Relif -> openParen EL closedParen action_17 then B .) - end reduce using rule 36 (Relif -> openParen EL closedParen action_17 then B .) + elif reduce using rule 37 (Relif -> openParen EL closedParen action_17 then B .) + else reduce using rule 37 (Relif -> openParen EL closedParen action_17 then B .) + end reduce using rule 37 (Relif -> openParen EL closedParen action_17 then B .) id shift and go to state 18 read shift and go to state 22 print shift and go to state 23 @@ -2760,76 +2848,77 @@ state 160 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 S shift and go to state 20 Dimensional shift and go to state 21 -state 161 - - (53) EL -> EL or action_10 AND action_9 . - - closedParen reduce using rule 53 (EL -> EL or action_10 AND action_9 .) - or reduce using rule 53 (EL -> EL or action_10 AND action_9 .) - and reduce using rule 53 (EL -> EL or action_10 AND action_9 .) - - state 162 - (55) AND -> AND and action_12 Equality action_11 . + (54) EL -> EL or action_10 AND action_9 . - and reduce using rule 55 (AND -> AND and action_12 Equality action_11 .) - closedParen reduce using rule 55 (AND -> AND and action_12 Equality action_11 .) - or reduce using rule 55 (AND -> AND and action_12 Equality action_11 .) + closedParen reduce using rule 54 (EL -> EL or action_10 AND action_9 .) + or reduce using rule 54 (EL -> EL or action_10 AND action_9 .) + and reduce using rule 54 (EL -> EL or action_10 AND action_9 .) state 163 - (56) Equality -> EItem EQSymbols action_13 EItem action_14 . + (56) AND -> AND and action_12 Equality action_11 . - and reduce using rule 56 (Equality -> EItem EQSymbols action_13 EItem action_14 .) - closedParen reduce using rule 56 (Equality -> EItem EQSymbols action_13 EItem action_14 .) - or reduce using rule 56 (Equality -> EItem EQSymbols action_13 EItem action_14 .) + and reduce using rule 56 (AND -> AND and action_12 Equality action_11 .) + closedParen reduce using rule 56 (AND -> AND and action_12 Equality action_11 .) + or reduce using rule 56 (AND -> AND and action_12 Equality action_11 .) state 164 - (20) S -> do id action_24 equals EA action_25 coma EA . action_26 IntOrEmpty then B action_29 end do - (43) EA -> EA . SumOrSub action_3 MultDiv action_4 - (94) action_26 -> . - (44) SumOrSub -> . plus - (45) SumOrSub -> . minus + (57) Equality -> EItem EQSymbols action_13 EItem action_14 . - coma reduce using rule 94 (action_26 -> .) - then reduce using rule 94 (action_26 -> .) - plus shift and go to state 83 - minus shift and go to state 84 + and reduce using rule 57 (Equality -> EItem EQSymbols action_13 EItem action_14 .) + closedParen reduce using rule 57 (Equality -> EItem EQSymbols action_13 EItem action_14 .) + or reduce using rule 57 (Equality -> EItem EQSymbols action_13 EItem action_14 .) - action_26 shift and go to state 166 - SumOrSub shift and go to state 82 state 165 - (37) Relif -> Relif elif action_18 openParen EL closedParen action_17 . then B + (20) S -> do id action_24 equals EA action_25 coma EA . action_26 IntOrEmpty then B action_29 end do + (44) EA -> EA . SumOrSub action_3 MultDiv action_4 + (95) action_26 -> . + (45) SumOrSub -> . plus + (46) SumOrSub -> . minus - then shift and go to state 167 + coma reduce using rule 95 (action_26 -> .) + then reduce using rule 95 (action_26 -> .) + plus shift and go to state 84 + minus shift and go to state 85 + action_26 shift and go to state 167 + SumOrSub shift and go to state 83 state 166 - (20) S -> do id action_24 equals EA action_25 coma EA action_26 . IntOrEmpty then B action_29 end do - (40) IntOrEmpty -> . coma int action_28 - (41) IntOrEmpty -> . action_27 - (95) action_27 -> . + (38) Relif -> Relif elif action_18 openParen EL closedParen action_17 . then B - coma shift and go to state 168 - then reduce using rule 95 (action_27 -> .) + then shift and go to state 168 - IntOrEmpty shift and go to state 169 - action_27 shift and go to state 170 state 167 - (37) Relif -> Relif elif action_18 openParen EL closedParen action_17 then . B + (20) S -> do id action_24 equals EA action_25 coma EA action_26 . IntOrEmpty then B action_29 end do + (41) IntOrEmpty -> . coma int action_28 + (42) IntOrEmpty -> . action_27 + (96) action_27 -> . + + coma shift and go to state 169 + then reduce using rule 96 (action_27 -> .) + + IntOrEmpty shift and go to state 170 + action_27 shift and go to state 171 + +state 168 + + (38) Relif -> Relif elif action_18 openParen EL closedParen action_17 then . B (13) B -> . B S (14) B -> . @@ -2840,36 +2929,37 @@ state 167 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) elif reduce using rule 14 (B -> .) else reduce using rule 14 (B -> .) end reduce using rule 14 (B -> .) - B shift and go to state 171 - -state 168 - - (40) IntOrEmpty -> coma . int action_28 - - int shift and go to state 172 - + B shift and go to state 172 state 169 - (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty . then B action_29 end do + (41) IntOrEmpty -> coma . int action_28 - then shift and go to state 173 + int shift and go to state 173 state 170 - (41) IntOrEmpty -> action_27 . + (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty . then B action_29 end do - then reduce using rule 41 (IntOrEmpty -> action_27 .) + then shift and go to state 174 state 171 - (37) Relif -> Relif elif action_18 openParen EL closedParen action_17 then B . + (42) IntOrEmpty -> action_27 . + + then reduce using rule 42 (IntOrEmpty -> action_27 .) + + +state 172 + + (38) Relif -> Relif elif action_18 openParen EL closedParen action_17 then B . (13) B -> B . S (15) S -> . Dimensional equals EA action_8 (16) S -> . id parens action_41 @@ -2880,11 +2970,12 @@ state 171 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 - elif reduce using rule 37 (Relif -> Relif elif action_18 openParen EL closedParen action_17 then B .) - else reduce using rule 37 (Relif -> Relif elif action_18 openParen EL closedParen action_17 then B .) - end reduce using rule 37 (Relif -> Relif elif action_18 openParen EL closedParen action_17 then B .) + elif reduce using rule 38 (Relif -> Relif elif action_18 openParen EL closedParen action_17 then B .) + else reduce using rule 38 (Relif -> Relif elif action_18 openParen EL closedParen action_17 then B .) + end reduce using rule 38 (Relif -> Relif elif action_18 openParen EL closedParen action_17 then B .) id shift and go to state 18 read shift and go to state 22 print shift and go to state 23 @@ -2892,21 +2983,22 @@ state 171 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 S shift and go to state 20 Dimensional shift and go to state 21 -state 172 - - (40) IntOrEmpty -> coma int . action_28 - (96) action_28 -> . - - then reduce using rule 96 (action_28 -> .) - - action_28 shift and go to state 174 - state 173 + (41) IntOrEmpty -> coma int . action_28 + (97) action_28 -> . + + then reduce using rule 97 (action_28 -> .) + + action_28 shift and go to state 175 + +state 174 + (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then . B action_29 end do (13) B -> . B S (14) B -> . @@ -2918,22 +3010,23 @@ state 173 do reduce using rule 14 (B -> .) swap reduce using rule 14 (B -> .) exit reduce using rule 14 (B -> .) + comment reduce using rule 14 (B -> .) end reduce using rule 14 (B -> .) - B shift and go to state 175 - -state 174 - - (40) IntOrEmpty -> coma int action_28 . - - then reduce using rule 40 (IntOrEmpty -> coma int action_28 .) - + B shift and go to state 176 state 175 + (41) IntOrEmpty -> coma int action_28 . + + then reduce using rule 41 (IntOrEmpty -> coma int action_28 .) + + +state 176 + (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B . action_29 end do (13) B -> B . S - (97) action_29 -> . + (98) action_29 -> . (15) S -> . Dimensional equals EA action_8 (16) S -> . id parens action_41 (17) S -> . read RDimensional @@ -2943,9 +3036,10 @@ state 175 (21) S -> . do then action_21 B action_22 end do (22) S -> . swap Dimensional coma Dimensional (23) S -> . exit action_23 - (24) Dimensional -> . id DimensionsOrEmpty action_1 + (24) S -> . comment + (25) Dimensional -> . id DimensionsOrEmpty action_1 - end reduce using rule 97 (action_29 -> .) + end reduce using rule 98 (action_29 -> .) id shift and go to state 18 read shift and go to state 22 print shift and go to state 23 @@ -2953,27 +3047,28 @@ state 175 do shift and go to state 25 swap shift and go to state 26 exit shift and go to state 27 + comment shift and go to state 28 - action_29 shift and go to state 176 + action_29 shift and go to state 177 S shift and go to state 20 Dimensional shift and go to state 21 -state 176 +state 177 (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 . end do - end shift and go to state 177 - - -state 177 - - (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end . do - - do shift and go to state 178 + end shift and go to state 178 state 178 + (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end . do + + do shift and go to state 179 + + +state 179 + (20) S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do . end reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) @@ -2984,12 +3079,13 @@ state 178 do reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) swap reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) exit reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) + comment reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) elif reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) else reduce using rule 20 (S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do .) WARNING: WARNING: Conflicts: WARNING: -WARNING: shift/reduce conflict for and in state 98 resolved as shift -WARNING: shift/reduce conflict for or in state 127 resolved as shift -WARNING: shift/reduce conflict for and in state 154 resolved as shift +WARNING: shift/reduce conflict for and in state 99 resolved as shift +WARNING: shift/reduce conflict for or in state 128 resolved as shift +WARNING: shift/reduce conflict for and in state 155 resolved as shift diff --git a/final_lang/parsetab.py b/final_lang/parsetab.py index f1505f3..eb48501 100644 --- a/final_lang/parsetab.py +++ b/final_lang/parsetab.py @@ -6,9 +6,9 @@ _tabversion = '3.10' _lr_method = 'LALR' -_lr_signature = 'and closedBra closedParen coma div do doubleColon doubleEquals elif else end endline equals exit id if int integer less lessEquals minus more moreEquals mul not notEquals openBra openParen or parens plus print program rea read real string subroutine swap then\n programa : program action_37 id V F action_38 B end program\n \n V : V Tipo Dim doubleColon Rid action_addSymbols action_32\n |\n \n Rid : id\n | Rid coma id\n \n Tipo : integer\n | real\n \n Dim : openBra int action_30 closedBra\n | openBra int action_30 closedBra openBra int action_31 closedBra\n |\n \n F : F subroutine id action_39 B end subroutine action_40\n |\n \n B : B S\n |\n \n S : Dimensional equals EA action_8\n | id parens action_41\n | read RDimensional\n | print RDimOrString\n | if action_16 Relif ElseOrEmpty end if action_20\n | do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do\n | do then action_21 B action_22 end do\n | swap Dimensional coma Dimensional\n | exit action_23 \n \n Dimensional : id DimensionsOrEmpty action_1\n \n DimensionsOrEmpty : openParen EA action_setDim1 ComaEAOrEmpty closedParen\n |\n \n ComaEAOrEmpty : coma EA action_setDim2\n |\n \n RDimensional : Dimensional action_36\n | RDimensional coma Dimensional action_36\n \n RDimOrString : DimOrString\n | RDimOrString coma DimOrString\n \n DimOrString : Dimensional action_33\n | string action_34\n | endline action_34\n \n Relif : openParen EL closedParen action_17 then B\n | Relif elif action_18 openParen EL closedParen action_17 then B\n \n ElseOrEmpty : else action_19 B\n |\n \n IntOrEmpty : coma int action_28\n | action_27\n \n EA : MultDiv\n | EA SumOrSub action_3 MultDiv action_4\n \n SumOrSub : plus\n | minus\n \n MultDiv : EAParens\n | MultDiv MDSymbols action_5 EAParens action_6\n \n MDSymbols : mul\n | div\n \n EAParens : EItem\n | openParen EA closedParen\n \n EL : AND\n | EL or action_10 AND action_9\n \n AND : Equality\n | AND and action_12 Equality action_11\n \n Equality : EItem EQSymbols action_13 EItem action_14\n | openParen EL closedParen\n | not EL action_15\n \n EItem : Dimensional\n | int action_2\n | rea action_2_rea\n \n EQSymbols : less\n | more\n | doubleEquals\n | notEquals\n | lessEquals\n | moreEquals\n action_addSymbols :action_1 :action_2 :action_2_rea :action_3 :action_4 :action_5 :action_6 :action_8 :action_9 :action_10 :action_11 :action_12 :action_13 :action_14 :action_15 :action_16 :action_17 :action_18 :action_19 :action_20 :action_21 :action_22 :action_23 :action_24 :action_25 :action_26 :action_27 :action_28 :action_29 :action_30 :action_31 :action_32 :action_33 :action_34 :action_36 :action_37 :action_38 :action_39 :action_40 :action_41 :action_setDim1 :action_setDim2 :' +_lr_signature = 'and closedBra closedParen coma comment div do doubleColon doubleEquals elif else end endline equals exit id if int integer less lessEquals minus more moreEquals mul not notEquals openBra openParen or parens plus print program rea read real string subroutine swap then\n programa : program action_37 id V F action_38 B end program\n \n V : V Tipo Dim doubleColon Rid action_addSymbols action_32\n |\n \n Rid : id\n | Rid coma id\n \n Tipo : integer\n | real\n \n Dim : openBra int action_30 closedBra\n | openBra int action_30 closedBra openBra int action_31 closedBra\n |\n \n F : F subroutine id action_39 B end subroutine action_40\n |\n \n B : B S\n |\n \n S : Dimensional equals EA action_8\n | id parens action_41\n | read RDimensional\n | print RDimOrString\n | if action_16 Relif ElseOrEmpty end if action_20\n | do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do\n | do then action_21 B action_22 end do\n | swap Dimensional coma Dimensional\n | exit action_23\n | comment\n \n Dimensional : id DimensionsOrEmpty action_1\n \n DimensionsOrEmpty : openParen EA action_setDim1 ComaEAOrEmpty closedParen\n |\n \n ComaEAOrEmpty : coma EA action_setDim2\n |\n \n RDimensional : Dimensional action_36\n | RDimensional coma Dimensional action_36\n \n RDimOrString : DimOrString\n | RDimOrString coma DimOrString\n \n DimOrString : Dimensional action_33\n | string action_34\n | endline action_34\n \n Relif : openParen EL closedParen action_17 then B\n | Relif elif action_18 openParen EL closedParen action_17 then B\n \n ElseOrEmpty : else action_19 B\n |\n \n IntOrEmpty : coma int action_28\n | action_27\n \n EA : MultDiv\n | EA SumOrSub action_3 MultDiv action_4\n \n SumOrSub : plus\n | minus\n \n MultDiv : EAParens\n | MultDiv MDSymbols action_5 EAParens action_6\n \n MDSymbols : mul\n | div\n \n EAParens : EItem\n | openParen EA closedParen\n \n EL : AND\n | EL or action_10 AND action_9\n \n AND : Equality\n | AND and action_12 Equality action_11\n \n Equality : EItem EQSymbols action_13 EItem action_14\n | openParen EL closedParen\n | not EL action_15\n \n EItem : Dimensional\n | int action_2\n | rea action_2_rea\n \n EQSymbols : less\n | more\n | doubleEquals\n | notEquals\n | lessEquals\n | moreEquals\n action_addSymbols :action_1 :action_2 :action_2_rea :action_3 :action_4 :action_5 :action_6 :action_8 :action_9 :action_10 :action_11 :action_12 :action_13 :action_14 :action_15 :action_16 :action_17 :action_18 :action_19 :action_20 :action_21 :action_22 :action_23 :action_24 :action_25 :action_26 :action_27 :action_28 :action_29 :action_30 :action_31 :action_32 :action_33 :action_34 :action_36 :action_37 :action_38 :action_39 :action_40 :action_41 :action_setDim1 :action_setDim2 :' -_lr_action_items = {'program':([0,19,],[2,35,]),'$end':([1,35,],[0,-1,]),'id':([2,3,4,5,6,10,11,14,15,16,20,22,23,25,26,27,28,29,30,32,33,34,36,37,38,39,40,41,42,43,44,47,49,50,51,52,54,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,72,74,75,77,78,82,83,84,85,86,87,88,89,90,91,92,95,96,101,102,103,104,105,107,109,110,111,112,115,118,119,120,121,122,123,124,125,126,130,132,134,135,136,137,138,141,142,143,149,150,151,153,157,158,160,167,171,173,175,178,],[-104,4,-3,-12,-105,-14,15,18,-106,30,-13,39,39,46,39,-91,-14,-68,-4,-108,-69,39,39,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,18,-100,78,-16,-24,39,-42,-46,-50,-59,-70,-71,-76,39,-29,39,-33,-34,-35,39,-14,39,-2,-5,-72,-44,-45,-74,-48,-49,-60,-61,-15,-103,-32,-87,39,39,39,18,-22,-107,-51,39,39,39,-30,-14,-78,-80,-81,-62,-63,-64,-65,-66,-67,-11,-25,-73,-75,-88,39,18,39,39,39,-43,-47,-19,-14,39,-21,18,-14,18,-14,18,-20,]),'integer':([4,5,29,30,51,77,78,],[-3,8,-68,-4,-100,-2,-5,]),'real':([4,5,29,30,51,77,78,],[-3,9,-68,-4,-100,-2,-5,]),'subroutine':([4,5,6,29,30,51,76,77,78,105,130,],[-3,-12,11,-68,-4,-100,105,-2,-5,-107,-11,]),'end':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,71,74,77,78,88,89,90,91,92,93,95,103,104,105,107,112,115,129,130,132,134,135,136,138,149,150,151,153,158,160,167,171,173,175,176,178,],[-3,-12,-105,-14,19,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,76,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-39,-14,-2,-5,-60,-61,-15,-103,-32,113,-87,-90,-22,-107,-51,-30,-14,146,-11,-25,-73,-75,-88,-38,-43,-47,-19,-14,-21,-36,-14,-37,-14,-97,177,-20,]),'read':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,74,77,78,88,89,90,91,92,95,103,104,105,107,112,115,130,132,134,135,136,138,149,150,151,153,158,160,167,171,173,175,178,],[-3,-12,-105,-14,22,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,22,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-14,-2,-5,-60,-61,-15,-103,-32,-87,22,-22,-107,-51,-30,-14,-11,-25,-73,-75,-88,22,-43,-47,-19,-14,-21,22,-14,22,-14,22,-20,]),'print':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,74,77,78,88,89,90,91,92,95,103,104,105,107,112,115,130,132,134,135,136,138,149,150,151,153,158,160,167,171,173,175,178,],[-3,-12,-105,-14,23,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,23,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-14,-2,-5,-60,-61,-15,-103,-32,-87,23,-22,-107,-51,-30,-14,-11,-25,-73,-75,-88,23,-43,-47,-19,-14,-21,23,-14,23,-14,23,-20,]),'if':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,74,77,78,88,89,90,91,92,95,103,104,105,107,112,113,115,130,132,134,135,136,138,149,150,151,153,158,160,167,171,173,175,178,],[-3,-12,-105,-14,24,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,24,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-14,-2,-5,-60,-61,-15,-103,-32,-87,24,-22,-107,-51,-30,136,-14,-11,-25,-73,-75,-88,24,-43,-47,-19,-14,-21,24,-14,24,-14,24,-20,]),'do':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,74,77,78,88,89,90,91,92,95,103,104,105,107,112,115,130,132,134,135,136,138,146,149,150,151,153,158,160,167,171,173,175,177,178,],[-3,-12,-105,-14,25,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,25,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-14,-2,-5,-60,-61,-15,-103,-32,-87,25,-22,-107,-51,-30,-14,-11,-25,-73,-75,-88,25,158,-43,-47,-19,-14,-21,25,-14,25,-14,25,178,-20,]),'swap':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,74,77,78,88,89,90,91,92,95,103,104,105,107,112,115,130,132,134,135,136,138,149,150,151,153,158,160,167,171,173,175,178,],[-3,-12,-105,-14,26,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,26,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-14,-2,-5,-60,-61,-15,-103,-32,-87,26,-22,-107,-51,-30,-14,-11,-25,-73,-75,-88,26,-43,-47,-19,-14,-21,26,-14,26,-14,26,-20,]),'exit':([4,5,6,10,14,15,20,27,28,29,30,32,33,37,38,39,40,41,42,43,44,47,49,50,51,54,55,58,59,60,61,62,63,64,66,68,69,70,74,77,78,88,89,90,91,92,95,103,104,105,107,112,115,130,132,134,135,136,138,149,150,151,153,158,160,167,171,173,175,178,],[-3,-12,-105,-14,27,-106,-13,-91,-14,-68,-4,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-89,-23,27,-100,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,-14,-2,-5,-60,-61,-15,-103,-32,-87,27,-22,-107,-51,-30,-14,-11,-25,-73,-75,-88,27,-43,-47,-19,-14,-21,27,-14,27,-14,27,-20,]),'openBra':([7,8,9,53,],[13,-6,-7,79,]),'doubleColon':([7,8,9,12,53,147,],[-10,-6,-7,16,-8,-9,]),'int':([13,34,36,56,72,79,82,83,84,85,86,87,96,101,102,109,110,111,118,119,120,121,122,123,124,125,126,137,141,142,143,157,168,],[17,62,62,62,62,106,-72,-44,-45,-74,-48,-49,62,62,62,62,62,62,-78,-80,-81,-62,-63,-64,-65,-66,-67,62,62,62,62,62,172,]),'closedBra':([17,31,106,131,],[-98,53,-99,147,]),'parens':([18,],[32,]),'openParen':([18,24,34,36,39,45,56,72,82,83,84,85,86,87,94,96,101,102,109,110,111,114,118,119,137,141,142,157,],[34,-84,56,56,34,72,56,96,-72,-44,-45,-74,-48,-49,-86,96,96,56,56,56,56,137,-78,-80,96,96,96,56,]),'equals':([18,21,33,46,55,73,132,],[-26,36,-69,-92,-24,102,-25,]),'elif':([20,27,32,33,37,38,39,40,41,42,43,44,49,54,55,58,59,60,61,62,63,64,66,68,69,70,71,88,89,90,91,92,104,107,112,132,134,135,136,149,150,151,153,158,160,167,171,178,],[-13,-91,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-23,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,94,-60,-61,-15,-103,-32,-22,-51,-30,-25,-73,-75,-88,-43,-47,-19,-14,-21,-36,-14,-37,-20,]),'else':([20,27,32,33,37,38,39,40,41,42,43,44,49,54,55,58,59,60,61,62,63,64,66,68,69,70,71,88,89,90,91,92,104,107,112,132,134,135,136,149,150,151,153,158,160,167,171,178,],[-13,-91,-108,-69,-17,-103,-26,-18,-31,-101,-102,-102,-23,-16,-24,-42,-46,-50,-59,-70,-71,-76,-29,-33,-34,-35,95,-60,-61,-15,-103,-32,-22,-51,-30,-25,-73,-75,-88,-43,-47,-19,-14,-21,-36,-14,-37,-20,]),'string':([23,67,],[43,43,]),'endline':([23,67,],[44,44,]),'then':([25,33,39,55,58,59,60,61,62,63,88,89,107,117,132,134,135,140,149,150,159,164,165,166,169,170,172,174,],[47,-69,-26,-24,-42,-46,-50,-59,-70,-71,-60,-61,-51,-85,-25,-73,-75,153,-43,-47,-85,-94,167,-95,173,-41,-96,-40,]),'coma':([29,30,33,37,38,39,40,41,42,43,44,48,55,57,58,59,60,61,62,63,66,68,69,70,78,81,88,89,91,92,107,112,128,132,134,135,145,149,150,164,166,],[52,-4,-69,65,-103,-26,67,-31,-101,-102,-102,75,-24,-109,-42,-46,-50,-59,-70,-71,-29,-33,-34,-35,-5,109,-60,-61,-103,-32,-51,-30,-93,-25,-73,-75,157,-43,-47,-94,168,]),'mul':([33,39,55,58,59,60,61,62,63,88,89,107,132,134,135,150,],[-69,-26,-24,86,-46,-50,-59,-70,-71,-60,-61,-51,-25,86,-75,-47,]),'div':([33,39,55,58,59,60,61,62,63,88,89,107,132,134,135,150,],[-69,-26,-24,87,-46,-50,-59,-70,-71,-60,-61,-51,-25,87,-75,-47,]),'plus':([33,39,55,57,58,59,60,61,62,63,64,80,88,89,107,128,132,133,134,135,149,150,164,],[-69,-26,-24,83,-42,-46,-50,-59,-70,-71,83,83,-60,-61,-51,83,-25,83,-73,-75,-43,-47,83,]),'minus':([33,39,55,57,58,59,60,61,62,63,64,80,88,89,107,128,132,133,134,135,149,150,164,],[-69,-26,-24,84,-42,-46,-50,-59,-70,-71,84,84,-60,-61,-51,84,-25,84,-73,-75,-43,-47,84,]),'closedParen':([33,39,55,57,58,59,60,61,62,63,80,81,88,89,97,98,99,107,108,116,127,132,133,134,135,139,144,148,149,150,152,154,155,156,161,162,163,],[-69,-26,-24,-109,-42,-46,-50,-59,-70,-71,107,-28,-60,-61,117,-52,-54,-51,132,139,-83,-25,-110,-73,-75,-57,-58,-27,-43,-47,159,-77,-79,-82,-53,-55,-56,]),'less':([33,39,55,61,62,63,88,89,100,132,],[-69,-26,-24,-59,-70,-71,-60,-61,121,-25,]),'more':([33,39,55,61,62,63,88,89,100,132,],[-69,-26,-24,-59,-70,-71,-60,-61,122,-25,]),'doubleEquals':([33,39,55,61,62,63,88,89,100,132,],[-69,-26,-24,-59,-70,-71,-60,-61,123,-25,]),'notEquals':([33,39,55,61,62,63,88,89,100,132,],[-69,-26,-24,-59,-70,-71,-60,-61,124,-25,]),'lessEquals':([33,39,55,61,62,63,88,89,100,132,],[-69,-26,-24,-59,-70,-71,-60,-61,125,-25,]),'moreEquals':([33,39,55,61,62,63,88,89,100,132,],[-69,-26,-24,-59,-70,-71,-60,-61,126,-25,]),'and':([33,39,55,61,62,63,88,89,98,99,127,132,139,144,154,155,156,161,162,163,],[-69,-26,-24,-59,-70,-71,-60,-61,119,-54,-83,-25,-57,-58,119,-79,-82,-53,-55,-56,]),'or':([33,39,55,61,62,63,88,89,97,98,99,116,127,132,139,144,152,154,155,156,161,162,163,],[-69,-26,-24,-59,-70,-71,-60,-61,118,-52,-54,118,118,-25,-57,-58,118,-77,-79,-82,-53,-55,-56,]),'rea':([34,36,56,72,82,83,84,85,86,87,96,101,102,109,110,111,118,119,120,121,122,123,124,125,126,137,141,142,143,157,],[63,63,63,63,-72,-44,-45,-74,-48,-49,63,63,63,63,63,63,-78,-80,-81,-62,-63,-64,-65,-66,-67,63,63,63,63,63,]),'not':([72,96,101,118,119,137,141,142,],[101,101,101,-78,-80,101,101,101,]),} +_lr_action_items = {'program':([0,19,],[2,36,]),'$end':([1,36,],[0,-1,]),'id':([2,3,4,5,6,10,11,14,15,16,20,22,23,25,26,27,28,29,30,31,33,34,35,37,38,39,40,41,42,43,44,45,48,50,51,52,53,55,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,73,75,76,78,79,83,84,85,86,87,88,89,90,91,92,93,96,97,102,103,104,105,106,108,110,111,112,113,116,119,120,121,122,123,124,125,126,127,131,133,135,136,137,138,139,142,143,144,150,151,152,154,158,159,161,168,172,174,176,179,],[-105,4,-3,-12,-106,-14,15,18,-107,31,-13,40,40,47,40,-92,-24,-14,-69,-4,-109,-70,40,40,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,18,-101,79,-16,-25,40,-43,-47,-51,-60,-71,-72,-77,40,-30,40,-34,-35,-36,40,-14,40,-2,-5,-73,-45,-46,-75,-49,-50,-61,-62,-15,-104,-33,-88,40,40,40,18,-22,-108,-52,40,40,40,-31,-14,-79,-81,-82,-63,-64,-65,-66,-67,-68,-11,-26,-74,-76,-89,40,18,40,40,40,-44,-48,-19,-14,40,-21,18,-14,18,-14,18,-20,]),'integer':([4,5,30,31,52,78,79,],[-3,8,-69,-4,-101,-2,-5,]),'real':([4,5,30,31,52,78,79,],[-3,9,-69,-4,-101,-2,-5,]),'subroutine':([4,5,6,30,31,52,77,78,79,106,131,],[-3,-12,11,-69,-4,-101,106,-2,-5,-108,-11,]),'end':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,72,75,78,79,89,90,91,92,93,94,96,104,105,106,108,113,116,130,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,177,179,],[-3,-12,-106,-14,19,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,77,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-40,-14,-2,-5,-61,-62,-15,-104,-33,114,-88,-91,-22,-108,-52,-31,-14,147,-11,-26,-74,-76,-89,-39,-44,-48,-19,-14,-21,-37,-14,-38,-14,-98,178,-20,]),'read':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,116,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,179,],[-3,-12,-106,-14,22,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,22,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,22,-22,-108,-52,-31,-14,-11,-26,-74,-76,-89,22,-44,-48,-19,-14,-21,22,-14,22,-14,22,-20,]),'print':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,116,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,179,],[-3,-12,-106,-14,23,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,23,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,23,-22,-108,-52,-31,-14,-11,-26,-74,-76,-89,23,-44,-48,-19,-14,-21,23,-14,23,-14,23,-20,]),'if':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,114,116,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,179,],[-3,-12,-106,-14,24,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,24,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,24,-22,-108,-52,-31,137,-14,-11,-26,-74,-76,-89,24,-44,-48,-19,-14,-21,24,-14,24,-14,24,-20,]),'do':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,116,131,133,135,136,137,139,147,150,151,152,154,159,161,168,172,174,176,178,179,],[-3,-12,-106,-14,25,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,25,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,25,-22,-108,-52,-31,-14,-11,-26,-74,-76,-89,25,159,-44,-48,-19,-14,-21,25,-14,25,-14,25,179,-20,]),'swap':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,116,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,179,],[-3,-12,-106,-14,26,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,26,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,26,-22,-108,-52,-31,-14,-11,-26,-74,-76,-89,26,-44,-48,-19,-14,-21,26,-14,26,-14,26,-20,]),'exit':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,116,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,179,],[-3,-12,-106,-14,27,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,27,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,27,-22,-108,-52,-31,-14,-11,-26,-74,-76,-89,27,-44,-48,-19,-14,-21,27,-14,27,-14,27,-20,]),'comment':([4,5,6,10,14,15,20,27,28,29,30,31,33,34,38,39,40,41,42,43,44,45,48,50,51,52,55,56,59,60,61,62,63,64,65,67,69,70,71,75,78,79,89,90,91,92,93,96,104,105,106,108,113,116,131,133,135,136,137,139,150,151,152,154,159,161,168,172,174,176,179,],[-3,-12,-106,-14,28,-107,-13,-92,-24,-14,-69,-4,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-90,-23,28,-101,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,-14,-2,-5,-61,-62,-15,-104,-33,-88,28,-22,-108,-52,-31,-14,-11,-26,-74,-76,-89,28,-44,-48,-19,-14,-21,28,-14,28,-14,28,-20,]),'openBra':([7,8,9,54,],[13,-6,-7,80,]),'doubleColon':([7,8,9,12,54,148,],[-10,-6,-7,16,-8,-9,]),'int':([13,35,37,57,73,80,83,84,85,86,87,88,97,102,103,110,111,112,119,120,121,122,123,124,125,126,127,138,142,143,144,158,169,],[17,63,63,63,63,107,-73,-45,-46,-75,-49,-50,63,63,63,63,63,63,-79,-81,-82,-63,-64,-65,-66,-67,-68,63,63,63,63,63,173,]),'closedBra':([17,32,107,132,],[-99,54,-100,148,]),'parens':([18,],[33,]),'openParen':([18,24,35,37,40,46,57,73,83,84,85,86,87,88,95,97,102,103,110,111,112,115,119,120,138,142,143,158,],[35,-85,57,57,35,73,57,97,-73,-45,-46,-75,-49,-50,-87,97,97,57,57,57,57,138,-79,-81,97,97,97,57,]),'equals':([18,21,34,47,56,74,133,],[-27,37,-70,-93,-25,103,-26,]),'elif':([20,27,28,33,34,38,39,40,41,42,43,44,45,50,55,56,59,60,61,62,63,64,65,67,69,70,71,72,89,90,91,92,93,105,108,113,133,135,136,137,150,151,152,154,159,161,168,172,179,],[-13,-92,-24,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-23,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,95,-61,-62,-15,-104,-33,-22,-52,-31,-26,-74,-76,-89,-44,-48,-19,-14,-21,-37,-14,-38,-20,]),'else':([20,27,28,33,34,38,39,40,41,42,43,44,45,50,55,56,59,60,61,62,63,64,65,67,69,70,71,72,89,90,91,92,93,105,108,113,133,135,136,137,150,151,152,154,159,161,168,172,179,],[-13,-92,-24,-109,-70,-17,-104,-27,-18,-32,-102,-103,-103,-23,-16,-25,-43,-47,-51,-60,-71,-72,-77,-30,-34,-35,-36,96,-61,-62,-15,-104,-33,-22,-52,-31,-26,-74,-76,-89,-44,-48,-19,-14,-21,-37,-14,-38,-20,]),'string':([23,68,],[44,44,]),'endline':([23,68,],[45,45,]),'then':([25,34,40,56,59,60,61,62,63,64,89,90,108,118,133,135,136,141,150,151,160,165,166,167,170,171,173,175,],[48,-70,-27,-25,-43,-47,-51,-60,-71,-72,-61,-62,-52,-86,-26,-74,-76,154,-44,-48,-86,-95,168,-96,174,-42,-97,-41,]),'coma':([30,31,34,38,39,40,41,42,43,44,45,49,56,58,59,60,61,62,63,64,67,69,70,71,79,82,89,90,92,93,108,113,129,133,135,136,146,150,151,165,167,],[53,-4,-70,66,-104,-27,68,-32,-102,-103,-103,76,-25,-110,-43,-47,-51,-60,-71,-72,-30,-34,-35,-36,-5,110,-61,-62,-104,-33,-52,-31,-94,-26,-74,-76,158,-44,-48,-95,169,]),'mul':([34,40,56,59,60,61,62,63,64,89,90,108,133,135,136,151,],[-70,-27,-25,87,-47,-51,-60,-71,-72,-61,-62,-52,-26,87,-76,-48,]),'div':([34,40,56,59,60,61,62,63,64,89,90,108,133,135,136,151,],[-70,-27,-25,88,-47,-51,-60,-71,-72,-61,-62,-52,-26,88,-76,-48,]),'plus':([34,40,56,58,59,60,61,62,63,64,65,81,89,90,108,129,133,134,135,136,150,151,165,],[-70,-27,-25,84,-43,-47,-51,-60,-71,-72,84,84,-61,-62,-52,84,-26,84,-74,-76,-44,-48,84,]),'minus':([34,40,56,58,59,60,61,62,63,64,65,81,89,90,108,129,133,134,135,136,150,151,165,],[-70,-27,-25,85,-43,-47,-51,-60,-71,-72,85,85,-61,-62,-52,85,-26,85,-74,-76,-44,-48,85,]),'closedParen':([34,40,56,58,59,60,61,62,63,64,81,82,89,90,98,99,100,108,109,117,128,133,134,135,136,140,145,149,150,151,153,155,156,157,162,163,164,],[-70,-27,-25,-110,-43,-47,-51,-60,-71,-72,108,-29,-61,-62,118,-53,-55,-52,133,140,-84,-26,-111,-74,-76,-58,-59,-28,-44,-48,160,-78,-80,-83,-54,-56,-57,]),'less':([34,40,56,62,63,64,89,90,101,133,],[-70,-27,-25,-60,-71,-72,-61,-62,122,-26,]),'more':([34,40,56,62,63,64,89,90,101,133,],[-70,-27,-25,-60,-71,-72,-61,-62,123,-26,]),'doubleEquals':([34,40,56,62,63,64,89,90,101,133,],[-70,-27,-25,-60,-71,-72,-61,-62,124,-26,]),'notEquals':([34,40,56,62,63,64,89,90,101,133,],[-70,-27,-25,-60,-71,-72,-61,-62,125,-26,]),'lessEquals':([34,40,56,62,63,64,89,90,101,133,],[-70,-27,-25,-60,-71,-72,-61,-62,126,-26,]),'moreEquals':([34,40,56,62,63,64,89,90,101,133,],[-70,-27,-25,-60,-71,-72,-61,-62,127,-26,]),'and':([34,40,56,62,63,64,89,90,99,100,128,133,140,145,155,156,157,162,163,164,],[-70,-27,-25,-60,-71,-72,-61,-62,120,-55,-84,-26,-58,-59,120,-80,-83,-54,-56,-57,]),'or':([34,40,56,62,63,64,89,90,98,99,100,117,128,133,140,145,153,155,156,157,162,163,164,],[-70,-27,-25,-60,-71,-72,-61,-62,119,-53,-55,119,119,-26,-58,-59,119,-78,-80,-83,-54,-56,-57,]),'rea':([35,37,57,73,83,84,85,86,87,88,97,102,103,110,111,112,119,120,121,122,123,124,125,126,127,138,142,143,144,158,],[64,64,64,64,-73,-45,-46,-75,-49,-50,64,64,64,64,64,64,-79,-81,-82,-63,-64,-65,-66,-67,-68,64,64,64,64,64,]),'not':([73,97,102,119,120,138,142,143,],[102,102,102,-79,-81,102,102,102,]),} _lr_action = {} for _k, _v in _lr_action_items.items(): @@ -17,7 +17,7 @@ for _k, _v in _lr_action_items.items(): _lr_action[_x][_k] = _y del _lr_action_items -_lr_goto_items = {'programa':([0,],[1,]),'action_37':([2,],[3,]),'V':([4,],[5,]),'F':([5,],[6,]),'Tipo':([5,],[7,]),'action_38':([6,],[10,]),'Dim':([7,],[12,]),'B':([10,28,74,115,153,167,173,],[14,50,103,138,160,171,175,]),'S':([14,50,103,138,160,171,175,],[20,20,20,20,20,20,20,]),'Dimensional':([14,22,23,26,34,36,50,56,65,67,72,75,96,101,102,103,109,110,111,137,138,141,142,143,157,160,171,175,],[21,38,42,48,61,61,21,61,91,42,61,104,61,61,61,21,61,61,61,61,21,61,61,61,61,21,21,21,]),'action_39':([15,],[28,]),'Rid':([16,],[29,]),'action_30':([17,],[31,]),'DimensionsOrEmpty':([18,39,],[33,33,]),'RDimensional':([22,],[37,]),'RDimOrString':([23,],[40,]),'DimOrString':([23,67,],[41,92,]),'action_16':([24,],[45,]),'action_23':([27,],[49,]),'action_addSymbols':([29,],[51,]),'action_41':([32,],[54,]),'action_1':([33,],[55,]),'EA':([34,36,56,102,109,157,],[57,64,80,128,133,164,]),'MultDiv':([34,36,56,102,109,110,157,],[58,58,58,58,58,134,58,]),'EAParens':([34,36,56,102,109,110,111,157,],[59,59,59,59,59,59,135,59,]),'EItem':([34,36,56,72,96,101,102,109,110,111,137,141,142,143,157,],[60,60,60,100,100,100,60,60,60,60,100,100,100,156,60,]),'action_36':([38,91,],[66,112,]),'action_33':([42,],[68,]),'action_34':([43,44,],[69,70,]),'Relif':([45,],[71,]),'action_24':([46,],[73,]),'action_21':([47,],[74,]),'action_32':([51,],[77,]),'action_setDim1':([57,],[81,]),'SumOrSub':([57,64,80,128,133,164,],[82,82,82,82,82,82,]),'MDSymbols':([58,134,],[85,85,]),'action_2':([62,],[88,]),'action_2_rea':([63,],[89,]),'action_8':([64,],[90,]),'ElseOrEmpty':([71,],[93,]),'EL':([72,96,101,137,],[97,116,127,152,]),'AND':([72,96,101,137,141,],[98,98,98,98,154,]),'Equality':([72,96,101,137,141,142,],[99,99,99,99,99,155,]),'ComaEAOrEmpty':([81,],[108,]),'action_3':([82,],[110,]),'action_5':([85,],[111,]),'action_18':([94,],[114,]),'action_19':([95,],[115,]),'EQSymbols':([100,],[120,]),'action_22':([103,],[129,]),'action_40':([105,],[130,]),'action_31':([106,],[131,]),'action_17':([117,159,],[140,165,]),'action_10':([118,],[141,]),'action_12':([119,],[142,]),'action_13':([120,],[143,]),'action_15':([127,],[144,]),'action_25':([128,],[145,]),'action_setDim2':([133,],[148,]),'action_4':([134,],[149,]),'action_6':([135,],[150,]),'action_20':([136,],[151,]),'action_9':([154,],[161,]),'action_11':([155,],[162,]),'action_14':([156,],[163,]),'action_26':([164,],[166,]),'IntOrEmpty':([166,],[169,]),'action_27':([166,],[170,]),'action_28':([172,],[174,]),'action_29':([175,],[176,]),} +_lr_goto_items = {'programa':([0,],[1,]),'action_37':([2,],[3,]),'V':([4,],[5,]),'F':([5,],[6,]),'Tipo':([5,],[7,]),'action_38':([6,],[10,]),'Dim':([7,],[12,]),'B':([10,29,75,116,154,168,174,],[14,51,104,139,161,172,176,]),'S':([14,51,104,139,161,172,176,],[20,20,20,20,20,20,20,]),'Dimensional':([14,22,23,26,35,37,51,57,66,68,73,76,97,102,103,104,110,111,112,138,139,142,143,144,158,161,172,176,],[21,39,43,49,62,62,21,62,92,43,62,105,62,62,62,21,62,62,62,62,21,62,62,62,62,21,21,21,]),'action_39':([15,],[29,]),'Rid':([16,],[30,]),'action_30':([17,],[32,]),'DimensionsOrEmpty':([18,40,],[34,34,]),'RDimensional':([22,],[38,]),'RDimOrString':([23,],[41,]),'DimOrString':([23,68,],[42,93,]),'action_16':([24,],[46,]),'action_23':([27,],[50,]),'action_addSymbols':([30,],[52,]),'action_41':([33,],[55,]),'action_1':([34,],[56,]),'EA':([35,37,57,103,110,158,],[58,65,81,129,134,165,]),'MultDiv':([35,37,57,103,110,111,158,],[59,59,59,59,59,135,59,]),'EAParens':([35,37,57,103,110,111,112,158,],[60,60,60,60,60,60,136,60,]),'EItem':([35,37,57,73,97,102,103,110,111,112,138,142,143,144,158,],[61,61,61,101,101,101,61,61,61,61,101,101,101,157,61,]),'action_36':([39,92,],[67,113,]),'action_33':([43,],[69,]),'action_34':([44,45,],[70,71,]),'Relif':([46,],[72,]),'action_24':([47,],[74,]),'action_21':([48,],[75,]),'action_32':([52,],[78,]),'action_setDim1':([58,],[82,]),'SumOrSub':([58,65,81,129,134,165,],[83,83,83,83,83,83,]),'MDSymbols':([59,135,],[86,86,]),'action_2':([63,],[89,]),'action_2_rea':([64,],[90,]),'action_8':([65,],[91,]),'ElseOrEmpty':([72,],[94,]),'EL':([73,97,102,138,],[98,117,128,153,]),'AND':([73,97,102,138,142,],[99,99,99,99,155,]),'Equality':([73,97,102,138,142,143,],[100,100,100,100,100,156,]),'ComaEAOrEmpty':([82,],[109,]),'action_3':([83,],[111,]),'action_5':([86,],[112,]),'action_18':([95,],[115,]),'action_19':([96,],[116,]),'EQSymbols':([101,],[121,]),'action_22':([104,],[130,]),'action_40':([106,],[131,]),'action_31':([107,],[132,]),'action_17':([118,160,],[141,166,]),'action_10':([119,],[142,]),'action_12':([120,],[143,]),'action_13':([121,],[144,]),'action_15':([128,],[145,]),'action_25':([129,],[146,]),'action_setDim2':([134,],[149,]),'action_4':([135,],[150,]),'action_6':([136,],[151,]),'action_20':([137,],[152,]),'action_9':([155,],[162,]),'action_11':([156,],[163,]),'action_14':([157,],[164,]),'action_26':([165,],[167,]),'IntOrEmpty':([167,],[170,]),'action_27':([167,],[171,]),'action_28':([173,],[175,]),'action_29':([176,],[177,]),} _lr_goto = {} for _k, _v in _lr_goto_items.items(): @@ -27,114 +27,115 @@ for _k, _v in _lr_goto_items.items(): del _lr_goto_items _lr_productions = [ ("S' -> programa","S'",1,None,None,None), - ('programa -> program action_37 id V F action_38 B end program','programa',9,'p_programa','fort.py',223), - ('V -> V Tipo Dim doubleColon Rid action_addSymbols action_32','V',7,'p_V','fort.py',230), - ('V -> ','V',0,'p_V','fort.py',231), - ('Rid -> id','Rid',1,'p_Rid','fort.py',237), - ('Rid -> Rid coma id','Rid',3,'p_Rid','fort.py',238), - ('Tipo -> integer','Tipo',1,'p_Tipo','fort.py',250), - ('Tipo -> real','Tipo',1,'p_Tipo','fort.py',251), - ('Dim -> openBra int action_30 closedBra','Dim',4,'p_Dim','fort.py',259), - ('Dim -> openBra int action_30 closedBra openBra int action_31 closedBra','Dim',8,'p_Dim','fort.py',260), - ('Dim -> ','Dim',0,'p_Dim','fort.py',261), - ('F -> F subroutine id action_39 B end subroutine action_40','F',8,'p_F','fort.py',267), - ('F -> ','F',0,'p_F','fort.py',268), - ('B -> B S','B',2,'p_B','fort.py',274), - ('B -> ','B',0,'p_B','fort.py',275), - ('S -> Dimensional equals EA action_8','S',4,'p_S','fort.py',281), - ('S -> id parens action_41','S',3,'p_S','fort.py',282), - ('S -> read RDimensional','S',2,'p_S','fort.py',283), - ('S -> print RDimOrString','S',2,'p_S','fort.py',284), - ('S -> if action_16 Relif ElseOrEmpty end if action_20','S',7,'p_S','fort.py',285), - ('S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do','S',15,'p_S','fort.py',286), - ('S -> do then action_21 B action_22 end do','S',7,'p_S','fort.py',287), - ('S -> swap Dimensional coma Dimensional','S',4,'p_S','fort.py',288), - ('S -> exit action_23','S',2,'p_S','fort.py',289), - ('Dimensional -> id DimensionsOrEmpty action_1','Dimensional',3,'p_Dimensional','fort.py',297), - ('DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen','DimensionsOrEmpty',5,'p_DimensionsOrEmpty','fort.py',304), - ('DimensionsOrEmpty -> ','DimensionsOrEmpty',0,'p_DimensionsOrEmpty','fort.py',305), - ('ComaEAOrEmpty -> coma EA action_setDim2','ComaEAOrEmpty',3,'p_ComaEAOrEmpty','fort.py',311), - ('ComaEAOrEmpty -> ','ComaEAOrEmpty',0,'p_ComaEAOrEmpty','fort.py',312), - ('RDimensional -> Dimensional action_36','RDimensional',2,'p_RDimensional','fort.py',318), - ('RDimensional -> RDimensional coma Dimensional action_36','RDimensional',4,'p_RDimensional','fort.py',319), - ('RDimOrString -> DimOrString','RDimOrString',1,'p_RDimOrString','fort.py',325), - ('RDimOrString -> RDimOrString coma DimOrString','RDimOrString',3,'p_RDimOrString','fort.py',326), - ('DimOrString -> Dimensional action_33','DimOrString',2,'p_DimOrString','fort.py',332), - ('DimOrString -> string action_34','DimOrString',2,'p_DimOrString','fort.py',333), - ('DimOrString -> endline action_34','DimOrString',2,'p_DimOrString','fort.py',334), - ('Relif -> openParen EL closedParen action_17 then B','Relif',6,'p_Relif','fort.py',340), - ('Relif -> Relif elif action_18 openParen EL closedParen action_17 then B','Relif',9,'p_Relif','fort.py',341), - ('ElseOrEmpty -> else action_19 B','ElseOrEmpty',3,'p_ElseOrEmpty','fort.py',347), - ('ElseOrEmpty -> ','ElseOrEmpty',0,'p_ElseOrEmpty','fort.py',348), - ('IntOrEmpty -> coma int action_28','IntOrEmpty',3,'p_IntOrEmpty','fort.py',354), - ('IntOrEmpty -> action_27','IntOrEmpty',1,'p_IntOrEmpty','fort.py',355), - ('EA -> MultDiv','EA',1,'p_EA','fort.py',361), - ('EA -> EA SumOrSub action_3 MultDiv action_4','EA',5,'p_EA','fort.py',362), - ('SumOrSub -> plus','SumOrSub',1,'p_SumOrSub','fort.py',368), - ('SumOrSub -> minus','SumOrSub',1,'p_SumOrSub','fort.py',369), - ('MultDiv -> EAParens','MultDiv',1,'p_MultDiv','fort.py',376), - ('MultDiv -> MultDiv MDSymbols action_5 EAParens action_6','MultDiv',5,'p_MultDiv','fort.py',377), - ('MDSymbols -> mul','MDSymbols',1,'p_MDSymbols','fort.py',383), - ('MDSymbols -> div','MDSymbols',1,'p_MDSymbols','fort.py',384), - ('EAParens -> EItem','EAParens',1,'p_EAParens','fort.py',391), - ('EAParens -> openParen EA closedParen','EAParens',3,'p_EAParens','fort.py',392), - ('EL -> AND','EL',1,'p_EL','fort.py',398), - ('EL -> EL or action_10 AND action_9','EL',5,'p_EL','fort.py',399), - ('AND -> Equality','AND',1,'p_AND','fort.py',405), - ('AND -> AND and action_12 Equality action_11','AND',5,'p_AND','fort.py',406), - ('Equality -> EItem EQSymbols action_13 EItem action_14','Equality',5,'p_Equality','fort.py',412), - ('Equality -> openParen EL closedParen','Equality',3,'p_Equality','fort.py',413), - ('Equality -> not EL action_15','Equality',3,'p_Equality','fort.py',414), - ('EItem -> Dimensional','EItem',1,'p_EItem','fort.py',420), - ('EItem -> int action_2','EItem',2,'p_EItem','fort.py',421), - ('EItem -> rea action_2_rea','EItem',2,'p_EItem','fort.py',422), - ('EQSymbols -> less','EQSymbols',1,'p_EQSymbols','fort.py',428), - ('EQSymbols -> more','EQSymbols',1,'p_EQSymbols','fort.py',429), - ('EQSymbols -> doubleEquals','EQSymbols',1,'p_EQSymbols','fort.py',430), - ('EQSymbols -> notEquals','EQSymbols',1,'p_EQSymbols','fort.py',431), - ('EQSymbols -> lessEquals','EQSymbols',1,'p_EQSymbols','fort.py',432), - ('EQSymbols -> moreEquals','EQSymbols',1,'p_EQSymbols','fort.py',433), - ('action_addSymbols -> ','action_addSymbols',0,'p_action_addSymbols','fort.py',443), - ('action_1 -> ','action_1',0,'p_action_1','fort.py',449), - ('action_2 -> ','action_2',0,'p_action_2','fort.py',497), - ('action_2_rea -> ','action_2_rea',0,'p_action_2_rea','fort.py',503), - ('action_3 -> ','action_3',0,'p_action_3','fort.py',509), - ('action_4 -> ','action_4',0,'p_action_4','fort.py',514), - ('action_5 -> ','action_5',0,'p_action_5','fort.py',537), - ('action_6 -> ','action_6',0,'p_action_6','fort.py',542), - ('action_8 -> ','action_8',0,'p_action_8','fort.py',565), - ('action_9 -> ','action_9',0,'p_action_9','fort.py',585), - ('action_10 -> ','action_10',0,'p_action_10','fort.py',608), - ('action_11 -> ','action_11',0,'p_action_11','fort.py',613), - ('action_12 -> ','action_12',0,'p_action_12','fort.py',636), - ('action_13 -> ','action_13',0,'p_action_13','fort.py',641), - ('action_14 -> ','action_14',0,'p_action_14','fort.py',646), - ('action_15 -> ','action_15',0,'p_action_15','fort.py',669), - ('action_16 -> ','action_16',0,'p_action_16','fort.py',684), - ('action_17 -> ','action_17',0,'p_action_17','fort.py',689), - ('action_18 -> ','action_18',0,'p_action_18','fort.py',705), - ('action_19 -> ','action_19',0,'p_action_19','fort.py',715), - ('action_20 -> ','action_20',0,'p_action_20','fort.py',725), - ('action_21 -> ','action_21',0,'p_action_21','fort.py',733), - ('action_22 -> ','action_22',0,'p_action_22','fort.py',739), - ('action_23 -> ','action_23',0,'p_action_23','fort.py',752), - ('action_24 -> ','action_24',0,'p_action_24','fort.py',761), - ('action_25 -> ','action_25',0,'p_action_25','fort.py',775), - ('action_26 -> ','action_26',0,'p_action_26','fort.py',793), - ('action_27 -> ','action_27',0,'p_action_27','fort.py',819), - ('action_28 -> ','action_28',0,'p_action_28','fort.py',825), - ('action_29 -> ','action_29',0,'p_action_29','fort.py',831), - ('action_30 -> ','action_30',0,'p_action_30','fort.py',855), - ('action_31 -> ','action_31',0,'p_action_31','fort.py',863), - ('action_32 -> ','action_32',0,'p_action_32','fort.py',871), - ('action_33 -> ','action_33',0,'p_action_33','fort.py',881), - ('action_34 -> ','action_34',0,'p_action_34','fort.py',893), - ('action_36 -> ','action_36',0,'p_action_36','fort.py',900), - ('action_37 -> ','action_37',0,'p_action_37','fort.py',909), - ('action_38 -> ','action_38',0,'p_action_38','fort.py',916), - ('action_39 -> ','action_39',0,'p_action_39','fort.py',922), - ('action_40 -> ','action_40',0,'p_action_40','fort.py',929), - ('action_41 -> ','action_41',0,'p_action_41','fort.py',936), - ('action_setDim1 -> ','action_setDim1',0,'p_action_setDim1','fort.py',948), - ('action_setDim2 -> ','action_setDim2',0,'p_action_setDim2','fort.py',959), + ('programa -> program action_37 id V F action_38 B end program','programa',9,'p_programa','fort.py',225), + ('V -> V Tipo Dim doubleColon Rid action_addSymbols action_32','V',7,'p_V','fort.py',232), + ('V -> ','V',0,'p_V','fort.py',233), + ('Rid -> id','Rid',1,'p_Rid','fort.py',239), + ('Rid -> Rid coma id','Rid',3,'p_Rid','fort.py',240), + ('Tipo -> integer','Tipo',1,'p_Tipo','fort.py',252), + ('Tipo -> real','Tipo',1,'p_Tipo','fort.py',253), + ('Dim -> openBra int action_30 closedBra','Dim',4,'p_Dim','fort.py',261), + ('Dim -> openBra int action_30 closedBra openBra int action_31 closedBra','Dim',8,'p_Dim','fort.py',262), + ('Dim -> ','Dim',0,'p_Dim','fort.py',263), + ('F -> F subroutine id action_39 B end subroutine action_40','F',8,'p_F','fort.py',269), + ('F -> ','F',0,'p_F','fort.py',270), + ('B -> B S','B',2,'p_B','fort.py',276), + ('B -> ','B',0,'p_B','fort.py',277), + ('S -> Dimensional equals EA action_8','S',4,'p_S','fort.py',283), + ('S -> id parens action_41','S',3,'p_S','fort.py',284), + ('S -> read RDimensional','S',2,'p_S','fort.py',285), + ('S -> print RDimOrString','S',2,'p_S','fort.py',286), + ('S -> if action_16 Relif ElseOrEmpty end if action_20','S',7,'p_S','fort.py',287), + ('S -> do id action_24 equals EA action_25 coma EA action_26 IntOrEmpty then B action_29 end do','S',15,'p_S','fort.py',288), + ('S -> do then action_21 B action_22 end do','S',7,'p_S','fort.py',289), + ('S -> swap Dimensional coma Dimensional','S',4,'p_S','fort.py',290), + ('S -> exit action_23','S',2,'p_S','fort.py',291), + ('S -> comment','S',1,'p_S','fort.py',292), + ('Dimensional -> id DimensionsOrEmpty action_1','Dimensional',3,'p_Dimensional','fort.py',300), + ('DimensionsOrEmpty -> openParen EA action_setDim1 ComaEAOrEmpty closedParen','DimensionsOrEmpty',5,'p_DimensionsOrEmpty','fort.py',307), + ('DimensionsOrEmpty -> ','DimensionsOrEmpty',0,'p_DimensionsOrEmpty','fort.py',308), + ('ComaEAOrEmpty -> coma EA action_setDim2','ComaEAOrEmpty',3,'p_ComaEAOrEmpty','fort.py',314), + ('ComaEAOrEmpty -> ','ComaEAOrEmpty',0,'p_ComaEAOrEmpty','fort.py',315), + ('RDimensional -> Dimensional action_36','RDimensional',2,'p_RDimensional','fort.py',321), + ('RDimensional -> RDimensional coma Dimensional action_36','RDimensional',4,'p_RDimensional','fort.py',322), + ('RDimOrString -> DimOrString','RDimOrString',1,'p_RDimOrString','fort.py',328), + ('RDimOrString -> RDimOrString coma DimOrString','RDimOrString',3,'p_RDimOrString','fort.py',329), + ('DimOrString -> Dimensional action_33','DimOrString',2,'p_DimOrString','fort.py',335), + ('DimOrString -> string action_34','DimOrString',2,'p_DimOrString','fort.py',336), + ('DimOrString -> endline action_34','DimOrString',2,'p_DimOrString','fort.py',337), + ('Relif -> openParen EL closedParen action_17 then B','Relif',6,'p_Relif','fort.py',343), + ('Relif -> Relif elif action_18 openParen EL closedParen action_17 then B','Relif',9,'p_Relif','fort.py',344), + ('ElseOrEmpty -> else action_19 B','ElseOrEmpty',3,'p_ElseOrEmpty','fort.py',350), + ('ElseOrEmpty -> ','ElseOrEmpty',0,'p_ElseOrEmpty','fort.py',351), + ('IntOrEmpty -> coma int action_28','IntOrEmpty',3,'p_IntOrEmpty','fort.py',357), + ('IntOrEmpty -> action_27','IntOrEmpty',1,'p_IntOrEmpty','fort.py',358), + ('EA -> MultDiv','EA',1,'p_EA','fort.py',364), + ('EA -> EA SumOrSub action_3 MultDiv action_4','EA',5,'p_EA','fort.py',365), + ('SumOrSub -> plus','SumOrSub',1,'p_SumOrSub','fort.py',371), + ('SumOrSub -> minus','SumOrSub',1,'p_SumOrSub','fort.py',372), + ('MultDiv -> EAParens','MultDiv',1,'p_MultDiv','fort.py',379), + ('MultDiv -> MultDiv MDSymbols action_5 EAParens action_6','MultDiv',5,'p_MultDiv','fort.py',380), + ('MDSymbols -> mul','MDSymbols',1,'p_MDSymbols','fort.py',386), + ('MDSymbols -> div','MDSymbols',1,'p_MDSymbols','fort.py',387), + ('EAParens -> EItem','EAParens',1,'p_EAParens','fort.py',394), + ('EAParens -> openParen EA closedParen','EAParens',3,'p_EAParens','fort.py',395), + ('EL -> AND','EL',1,'p_EL','fort.py',401), + ('EL -> EL or action_10 AND action_9','EL',5,'p_EL','fort.py',402), + ('AND -> Equality','AND',1,'p_AND','fort.py',408), + ('AND -> AND and action_12 Equality action_11','AND',5,'p_AND','fort.py',409), + ('Equality -> EItem EQSymbols action_13 EItem action_14','Equality',5,'p_Equality','fort.py',415), + ('Equality -> openParen EL closedParen','Equality',3,'p_Equality','fort.py',416), + ('Equality -> not EL action_15','Equality',3,'p_Equality','fort.py',417), + ('EItem -> Dimensional','EItem',1,'p_EItem','fort.py',423), + ('EItem -> int action_2','EItem',2,'p_EItem','fort.py',424), + ('EItem -> rea action_2_rea','EItem',2,'p_EItem','fort.py',425), + ('EQSymbols -> less','EQSymbols',1,'p_EQSymbols','fort.py',431), + ('EQSymbols -> more','EQSymbols',1,'p_EQSymbols','fort.py',432), + ('EQSymbols -> doubleEquals','EQSymbols',1,'p_EQSymbols','fort.py',433), + ('EQSymbols -> notEquals','EQSymbols',1,'p_EQSymbols','fort.py',434), + ('EQSymbols -> lessEquals','EQSymbols',1,'p_EQSymbols','fort.py',435), + ('EQSymbols -> moreEquals','EQSymbols',1,'p_EQSymbols','fort.py',436), + ('action_addSymbols -> ','action_addSymbols',0,'p_action_addSymbols','fort.py',446), + ('action_1 -> ','action_1',0,'p_action_1','fort.py',452), + ('action_2 -> ','action_2',0,'p_action_2','fort.py',500), + ('action_2_rea -> ','action_2_rea',0,'p_action_2_rea','fort.py',506), + ('action_3 -> ','action_3',0,'p_action_3','fort.py',512), + ('action_4 -> ','action_4',0,'p_action_4','fort.py',517), + ('action_5 -> ','action_5',0,'p_action_5','fort.py',540), + ('action_6 -> ','action_6',0,'p_action_6','fort.py',545), + ('action_8 -> ','action_8',0,'p_action_8','fort.py',568), + ('action_9 -> ','action_9',0,'p_action_9','fort.py',588), + ('action_10 -> ','action_10',0,'p_action_10','fort.py',611), + ('action_11 -> ','action_11',0,'p_action_11','fort.py',616), + ('action_12 -> ','action_12',0,'p_action_12','fort.py',639), + ('action_13 -> ','action_13',0,'p_action_13','fort.py',644), + ('action_14 -> ','action_14',0,'p_action_14','fort.py',649), + ('action_15 -> ','action_15',0,'p_action_15','fort.py',672), + ('action_16 -> ','action_16',0,'p_action_16','fort.py',687), + ('action_17 -> ','action_17',0,'p_action_17','fort.py',692), + ('action_18 -> ','action_18',0,'p_action_18','fort.py',708), + ('action_19 -> ','action_19',0,'p_action_19','fort.py',718), + ('action_20 -> ','action_20',0,'p_action_20','fort.py',728), + ('action_21 -> ','action_21',0,'p_action_21','fort.py',736), + ('action_22 -> ','action_22',0,'p_action_22','fort.py',742), + ('action_23 -> ','action_23',0,'p_action_23','fort.py',755), + ('action_24 -> ','action_24',0,'p_action_24','fort.py',764), + ('action_25 -> ','action_25',0,'p_action_25','fort.py',778), + ('action_26 -> ','action_26',0,'p_action_26','fort.py',796), + ('action_27 -> ','action_27',0,'p_action_27','fort.py',820), + ('action_28 -> ','action_28',0,'p_action_28','fort.py',826), + ('action_29 -> ','action_29',0,'p_action_29','fort.py',832), + ('action_30 -> ','action_30',0,'p_action_30','fort.py',856), + ('action_31 -> ','action_31',0,'p_action_31','fort.py',864), + ('action_32 -> ','action_32',0,'p_action_32','fort.py',872), + ('action_33 -> ','action_33',0,'p_action_33','fort.py',882), + ('action_34 -> ','action_34',0,'p_action_34','fort.py',894), + ('action_36 -> ','action_36',0,'p_action_36','fort.py',901), + ('action_37 -> ','action_37',0,'p_action_37','fort.py',910), + ('action_38 -> ','action_38',0,'p_action_38','fort.py',917), + ('action_39 -> ','action_39',0,'p_action_39','fort.py',923), + ('action_40 -> ','action_40',0,'p_action_40','fort.py',930), + ('action_41 -> ','action_41',0,'p_action_41','fort.py',937), + ('action_setDim1 -> ','action_setDim1',0,'p_action_setDim1','fort.py',949), + ('action_setDim2 -> ','action_setDim2',0,'p_action_setDim2','fort.py',960), ] diff --git a/final_lang/experiments.fort b/final_lang/programas/experiments.fort similarity index 100% rename from final_lang/experiments.fort rename to final_lang/programas/experiments.fort diff --git a/final_lang/experiments.fort.out b/final_lang/programas/experiments.fort.out similarity index 100% rename from final_lang/experiments.fort.out rename to final_lang/programas/experiments.fort.out diff --git a/final_lang/programa1.fort b/final_lang/programas/programa1.fort similarity index 100% rename from final_lang/programa1.fort rename to final_lang/programas/programa1.fort diff --git a/final_lang/programa1.fort.out b/final_lang/programas/programa1.fort.out similarity index 100% rename from final_lang/programa1.fort.out rename to final_lang/programas/programa1.fort.out diff --git a/final_lang/programas/programa2.fort b/final_lang/programas/programa2.fort new file mode 100644 index 0000000..6ba6aee --- /dev/null +++ b/final_lang/programas/programa2.fort @@ -0,0 +1,42 @@ +program p2 +integer [10] :: vec +integer :: i, j, size, temp +subroutine readVec + do i = 0, size - 1 then + print 'Enter element ', i, ' of the vector', endline + read vec(i) + end do +end subroutine +subroutine printVec + do i = 0, size - 1 then + print vec(i), ' ' + end do + print endline +end subroutine +subroutine readDim + do then + print 'Enter the size of the vector to sort', endline + read size + if (size <= 10 .and. size > 0) then + exit + end if + print 'The size of the vector must be greater than 0 and less than or equal to 10', endline + end do +end subroutine +subroutine sort + do i = 0, size - 2 then + do j = 0, size - i - 2 then + if (vec(j) > vec(j + 1)) then + temp = vec(j) + vec(j) = vec(j+1) + vec(j+1) = temp + end if + end do + end do +end subroutine +readDim() +readVec() +sort() +print 'Sorted vector: ' +printVec() +end program \ No newline at end of file diff --git a/final_lang/programas/programa2.fort.out b/final_lang/programas/programa2.fort.out new file mode 100644 index 0000000..9041c16 --- /dev/null +++ b/final_lang/programas/programa2.fort.out @@ -0,0 +1,74 @@ +goto 70 += 0 $210 +- $212 1 $0 +<= $210 $0 $1 +gotoF $1 15 +print 'Enter element ' +print $210 +print ' of the vector' +print endline ++ 200 $210 $2 +read *2 ++ $210 1 $3 += $3 $210 +goto 4 +goback += 0 $210 +- $212 1 $3 +<= $210 $3 $4 +gotoF $4 26 ++ 200 $210 $5 +print *5 +print ' ' ++ $210 1 $5 += $5 $210 +goto 18 +print endline +goback +print 'Enter the size of the vector to sort' +print endline +read $212 +<= $212 10 $5 +> $212 0 $6 +.and. $5 $6 $7 +gotoF $7 36 +goto 39 +print 'The size of the vector must be greater than 0 and less than or equal to 10' +print endline +goto 28 +goback += 0 $210 +- $212 2 $7 +<= $210 $7 $5 +gotoF $5 69 += 0 $211 +- $212 $210 $6 +- $6 2 $8 +<= $211 $8 $6 +gotoF $6 66 ++ 200 $211 $9 ++ $211 1 $10 ++ 200 $10 $11 +> *9 *11 $12 +gotoF $12 63 ++ 200 $211 $12 += *12 $213 ++ 200 $211 $12 ++ $211 1 $9 ++ 200 $9 $11 += *11 *12 ++ $211 1 $12 ++ 200 $12 $11 += $213 *11 ++ $211 1 $11 += $11 $211 +goto 47 ++ $210 1 $11 += $11 $210 +goto 42 +goback +call 28 +call 2 +call 40 +print 'Sorted vector: ' +call 16 diff --git a/final_lang/prueba.fort b/final_lang/programas/programa3.fort similarity index 100% rename from final_lang/prueba.fort rename to final_lang/programas/programa3.fort diff --git a/final_lang/prueba.fort.out b/final_lang/programas/programa3.fort.out similarity index 58% rename from final_lang/prueba.fort.out rename to final_lang/programas/programa3.fort.out index d21800b..6959d95 100644 --- a/final_lang/prueba.fort.out +++ b/final_lang/programas/programa3.fort.out @@ -7,89 +7,89 @@ print '2 - Calculate a number to the power of another number' print endline print '3 - Calculate e to the power of a number' print endline -read $50 -== $50 1 $0 +read $200 +== $200 1 $0 gotoF $0 29 print 'Enter the number' print endline -read $52 -= 1 $51 -= 1 $54 -<= $54 $52 $0 +read $202 += 1 $201 += 1 $204 +<= $204 $202 $0 gotoF $0 25 -* $51 $54 $1 -= $1 $51 -+ $54 1 $1 -= $1 $54 +* $201 $204 $1 += $1 $201 ++ $204 1 $1 += $1 $204 goto 18 print 'The result is : ' -print $51 +print $201 print endline goto 89 -== $50 2 $1 +== $200 2 $1 gotoF $1 50 print 'Enter the base' print endline -read $52 +read $202 print 'Enter the exponent' print endline -read $53 -= 1 $51 -= 1 $54 -<= $54 $53 $1 +read $203 += 1 $201 += 1 $204 +<= $204 $203 $1 gotoF $1 46 -* $51 $52 $2 -= $2 $51 -+ $54 1 $2 -= $2 $54 +* $201 $202 $2 += $2 $201 ++ $204 1 $2 += $2 $204 goto 39 print 'The result is : ' -print $51 +print $201 print endline goto 89 -== $50 3 $2 +== $200 3 $2 gotoF $2 87 print 'Enter the exponent' print endline -read $52 -= 0 $51 -= 0 $54 -<= $54 10 $2 +read $202 += 0 $201 += 0 $204 +<= $204 10 $2 gotoF $2 83 -= 1 $56 -= 1 $55 -<= $55 $54 $3 += 1 $206 += 1 $205 +<= $205 $204 $3 gotoF $3 68 -* $56 $55 $4 -= $4 $56 -+ $55 1 $4 -= $4 $55 +* $206 $205 $4 += $4 $206 ++ $205 1 $4 += $4 $205 goto 61 -= 1 $57 -= 1 $55 -<= $55 $54 $4 += 1 $207 += 1 $205 +<= $205 $204 $4 gotoF $4 77 -* $57 $52 $5 -= $5 $57 -+ $55 1 $5 -= $5 $55 +* $207 $202 $5 += $5 $207 ++ $205 1 $5 += $5 $205 goto 70 -/ $57 $56 $5 -+ $51 $5 $6 -= $6 $51 -+ $54 1 $6 -= $6 $54 +/ $207 $206 $5 ++ $201 $5 $6 += $6 $201 ++ $204 1 $6 += $6 $204 goto 57 print 'The result is : ' -print $51 +print $201 print endline goto 89 print 'Not a valid option' print endline print 'Would you like to make another calculation? (type 1 for yes or 0 for no)' print endline -read $50 -== $50 0 $6 +read $200 +== $200 0 $6 gotoF $6 95 goto 96 goto 2 diff --git a/final_lang/spaces.fort b/final_lang/programas/spaces.fort similarity index 100% rename from final_lang/spaces.fort rename to final_lang/programas/spaces.fort diff --git a/final_lang/spaces.fort.out b/final_lang/programas/spaces.fort.out similarity index 100% rename from final_lang/spaces.fort.out rename to final_lang/programas/spaces.fort.out diff --git a/final_lang/test.fort b/final_lang/programas/test.fort similarity index 100% rename from final_lang/test.fort rename to final_lang/programas/test.fort diff --git a/final_lang/test.fort.out b/final_lang/programas/test.fort.out similarity index 100% rename from final_lang/test.fort.out rename to final_lang/programas/test.fort.out diff --git a/final_lang/test2.fort b/final_lang/programas/test2.fort similarity index 100% rename from final_lang/test2.fort rename to final_lang/programas/test2.fort diff --git a/final_lang/test2.fort.out b/final_lang/programas/test2.fort.out similarity index 50% rename from final_lang/test2.fort.out rename to final_lang/programas/test2.fort.out index e1f60f9..f82ed4f 100644 --- a/final_lang/test2.fort.out +++ b/final_lang/programas/test2.fort.out @@ -1,44 +1,44 @@ goto 2 -= 1 $150 -= 2 $151 -* $150 10 $0 += 1 $300 += 2 $301 +* $300 10 $0 + 0 $0 $0 -+ 50 $0 $0 ++ 200 $0 $0 = 1 *0 -* $151 10 $0 +* $301 10 $0 + 0 $0 $0 -+ 50 $0 $0 ++ 200 $0 $0 = 2 *0 print 'a(i) = ' -* $150 10 $0 +* $300 10 $0 + 0 $0 $0 -+ 50 $0 $0 ++ 200 $0 $0 print *0 print endline print 'a(j) = ' -* $151 10 $0 +* $301 10 $0 + 0 $0 $0 -+ 50 $0 $0 ++ 200 $0 $0 print *0 print endline -* $150 10 $0 +* $300 10 $0 + 0 $0 $0 -+ 50 $0 $0 -* $151 10 $1 ++ 200 $0 $0 +* $301 10 $1 + 0 $1 $1 -+ 50 $1 $1 -* $150 10 $2 ++ 200 $1 $1 +* $300 10 $2 + 0 $2 $2 -+ 50 $2 $2 ++ 200 $2 $2 + *1 *2 $3 = $3 *0 print 'a(i) = ' -* $150 10 $0 +* $300 10 $0 + 0 $0 $0 -+ 50 $0 $0 ++ 200 $0 $0 print *0 print endline -+ $151 2 $0 -= $0 $150 -print $150 ++ $301 2 $0 += $0 $300 +print $300 print endline