📄 y.output
字号:
state 0 $accept : _pascalFile $end error shift 13 SHARP shift 14 CONST shift 16 LABEL shift 15 FUNCTION shift 23 PROGRAM shift 5 PROCEDURE shift 24 TYPE shift 17 VAR shift 18 . error pascalFile goto 1 CompilationUnit goto 2 program goto 3 lsDeclaration goto 4 declaration goto 6 IncludeDecl goto 7 LabelDecl goto 8 ConstDecl goto 9 TypeDecl goto 10 VarDecl goto 11 ProcedureDecl goto 12 ProcedurePrefix goto 22 ProcedureHeader goto 20 FunctionPrefix goto 21 FunctionHeader goto 19state 1 $accept : pascalFile_$end $end accept . errorstate 2 pascalFile : CompilationUnit_ (1) . reduce 1state 3 CompilationUnit : program_ (2) . reduce 2state 4 CompilationUnit : lsDeclaration_ (3) lsDeclaration : lsDeclaration_declaration error shift 13 SHARP shift 14 CONST shift 16 LABEL shift 15 FUNCTION shift 23 PROCEDURE shift 24 TYPE shift 17 VAR shift 18 . reduce 3 declaration goto 25 IncludeDecl goto 7 LabelDecl goto 8 ConstDecl goto 9 TypeDecl goto 10 VarDecl goto 11 ProcedureDecl goto 12 ProcedurePrefix goto 22 ProcedureHeader goto 20 FunctionPrefix goto 21 FunctionHeader goto 19state 5 program : PROGRAM_ident zoplsIdent SEMICOLON $$4 block END DOT IDENT shift 27 . error ident goto 26state 6 lsDeclaration : declaration_ (11) . reduce 11state 7 declaration : IncludeDecl_ (13) . reduce 13state 8 declaration : LabelDecl_ (14) . reduce 14state 9 declaration : ConstDecl_ (15) ConstDecl : ConstDecl_ConstDef SEMICOLON IDENT shift 27 . reduce 15 ident goto 31 ConstDef goto 28 exportIdent goto 29 prIdent goto 30state 10 declaration : TypeDecl_ (16) TypeDecl : TypeDecl_TypeDef $$32 SEMICOLON IDENT shift 27 . reduce 16 ident goto 31 exportIdent goto 33 TypeDef goto 32 prIdent goto 30state 11 declaration : VarDecl_ (17) VarDecl : VarDecl_VarDef $$39 SEMICOLON IDENT shift 27 . reduce 17 ident goto 31 exportIdent goto 36 VarDef goto 34 varIdentList goto 35 prIdent goto 30state 12 declaration : ProcedureDecl_ (18) . reduce 18state 13 declaration : error_SEMICOLON SEMICOLON shift 37 . errorstate 14 IncludeDecl : SHARP_INCLUDE $$20 STRCONST INCLUDE shift 38 . errorstate 15 LabelDecl : LABEL_$$22 oplsElement SEMICOLON $$22 : _ (22) . reduce 22 $$22 goto 39state 16 ConstDecl : CONST_$$24 ConstDef SEMICOLON $$24 : _ (24) . reduce 24 $$24 goto 40state 17 TypeDecl : TYPE_$$29 TypeDef $$30 SEMICOLON $$29 : _ (29) . reduce 29 $$29 goto 41state 18 VarDecl : VAR_$$36 VarDef $$37 SEMICOLON $$36 : _ (36) . reduce 36 $$36 goto 42state 19 ProcedureDecl : FunctionHeader_block END SEMICOLON ProcedureDecl : FunctionHeader_EXTERNAL SEMICOLON oplsDeclaration : _ (9) error shift 13 SHARP shift 14 CONST shift 16 LABEL shift 15 FORWARD shift 46 FUNCTION shift 23 EXTERNAL shift 44 PROCEDURE shift 24 TYPE shift 17 VAR shift 18 . reduce 9 lsDeclaration goto 47 block goto 43 oplsDeclaration goto 45 declaration goto 6 IncludeDecl goto 7 LabelDecl goto 8 ConstDecl goto 9 TypeDecl goto 10 VarDecl goto 11 ProcedureDecl goto 12 ProcedurePrefix goto 22 ProcedureHeader goto 20 FunctionPrefix goto 21 FunctionHeader goto 19state 20 ProcedureDecl : ProcedureHeader_block END SEMICOLON ProcedureDecl : ProcedureHeader_EXTERNAL SEMICOLON oplsDeclaration : _ (9) error shift 13 SHARP shift 14 CONST shift 16 LABEL shift 15 FORWARD shift 46 FUNCTION shift 23 EXTERNAL shift 49 PROCEDURE shift 24 TYPE shift 17 VAR shift 18 . reduce 9 lsDeclaration goto 47 block goto 48 oplsDeclaration goto 45 declaration goto 6 IncludeDecl goto 7 LabelDecl goto 8 ConstDecl goto 9 TypeDecl goto 10 VarDecl goto 11 ProcedureDecl goto 12 ProcedurePrefix goto 22 ProcedureHeader goto 20 FunctionPrefix goto 21 FunctionHeader goto 19state 21 FunctionHeader : FunctionPrefix_SEMICOLON FunctionHeader : FunctionPrefix_fparameterList COLON $$50 prIdent $$51 SEMICOLON fparameterList : _ (57) SEMICOLON shift 50 LPAREN shift 53 . reduce 57 parameterList goto 52 fparameterList goto 51state 22 ProcedureHeader : ProcedurePrefix_SEMICOLON ProcedureHeader : ProcedurePrefix_parameterList SEMICOLON SEMICOLON shift 54 LPAREN shift 53 . error parameterList goto 55state 23 FunctionPrefix : FUNCTION_$$47 exportIdent $$47 : _ (47) . reduce 47 $$47 goto 56state 24 ProcedurePrefix : PROCEDURE_$$43 exportIdent $$43 : _ (43) . reduce 43 $$43 goto 57state 25 lsDeclaration : lsDeclaration declaration_ (12) . reduce 12state 26 program : PROGRAM ident_zoplsIdent SEMICOLON $$4 block END DOT zoplsIdent : _ (280) LPAREN shift 59 . reduce 280 zoplsIdent goto 58state 27 ident : IDENT_ (287) . reduce 287state 28 ConstDecl : ConstDecl ConstDef_SEMICOLON SEMICOLON shift 60 . errorstate 29 ConstDef : exportIdent_EQUALS $$27 expression EQUALS shift 61 . errorstate 30 exportIdent : prIdent_ (294) . reduce 294state 31 prIdent : ident_ (279) . reduce 279state 32 TypeDecl : TypeDecl TypeDef_$$32 SEMICOLON $$32 : _ (32) . reduce 32 $$32 goto 62state 33 TypeDef : exportIdent_EQUALS $$34 typeDefinition EQUALS shift 63 . errorstate 34 VarDecl : VarDecl VarDef_$$39 SEMICOLON $$39 : _ (39) . reduce 39 $$39 goto 64state 35 VarDef : varIdentList_COLON $$41 typeDefinition varIdentList : varIdentList_COMMA $$296 exportIdent COMMA shift 66 COLON shift 65 . errorstate 36 varIdentList : exportIdent_ (295) . reduce 295state 37 declaration : error SEMICOLON_ (19) . reduce 19state 38 IncludeDecl : SHARP INCLUDE_$$20 STRCONST $$20 : _ (20) . reduce 20 $$20 goto 67state 39 LabelDecl : LABEL $$22_oplsElement SEMICOLON oplsElement : _ (244) PLUS shift 74 MINUS shift 75 LPAREN shift 83 LBRACKET shift 85 IDENT shift 27 NUMBER shift 78 CHARCONST shift 79 STRCONST shift 80 NOT shift 84 . reduce 244 ident goto 31 oplsElement goto 68 expression goto 71 prIdent goto 86 ElementList goto 69 designator goto 82 factor goto 77 setexpr goto 81 SimpleExpression goto 72 Element goto 70 term goto 76 lsAddTerm goto 73state 40 ConstDecl : CONST $$24_ConstDef SEMICOLON IDENT shift 27 . error ident goto 31 ConstDef goto 87 exportIdent goto 29 prIdent goto 30state 41 TypeDecl : TYPE $$29_TypeDef $$30 SEMICOLON IDENT shift 27 . error ident goto 31 exportIdent goto 33 TypeDef goto 88 prIdent goto 30state 42 VarDecl : VAR $$36_VarDef $$37 SEMICOLON IDENT shift 27 . error ident goto 31 exportIdent goto 36 VarDef goto 89 varIdentList goto 35 prIdent goto 30state 43 ProcedureDecl : FunctionHeader block_END SEMICOLON END shift 90 . errorstate 44 ProcedureDecl : FunctionHeader EXTERNAL_SEMICOLON SEMICOLON shift 91 . errorstate 45 block : oplsDeclaration_BEGIN $$6 StatementSequence BEGIN shift 92 . errorstate 46 block : FORWARD_ (8) . reduce 8state 47 oplsDeclaration : lsDeclaration_ (10) lsDeclaration : lsDeclaration_declaration error shift 13 SHARP shift 14 CONST shift 16 LABEL shift 15 FUNCTION shift 23 PROCEDURE shift 24 TYPE shift 17 VAR shift 18 . reduce 10 declaration goto 25 IncludeDecl goto 7 LabelDecl goto 8 ConstDecl goto 9 TypeDecl goto 10 VarDecl goto 11 ProcedureDecl goto 12 ProcedurePrefix goto 22 ProcedureHeader goto 20 FunctionPrefix goto 21 FunctionHeader goto 19state 48 ProcedureDecl : ProcedureHeader block_END SEMICOLON END shift 93 . errorstate 49 ProcedureDecl : ProcedureHeader EXTERNAL_SEMICOLON SEMICOLON shift 94 . errorstate 50 FunctionHeader : FunctionPrefix SEMICOLON_ (49) . reduce 49state 51 FunctionHeader : FunctionPrefix fparameterList_COLON $$50 prIdent $$51 SEMICOLON COLON shift 95 . errorstate 52 fparameterList : parameterList_ (58) . reduce 58state 53 parameterList : LPAREN_$$59 lsParam RPAREN $$59 : _ (59) . reduce 59 $$59 goto 96state 54 ProcedureHeader : ProcedurePrefix SEMICOLON_ (45) . reduce 45state 55 ProcedureHeader : ProcedurePrefix parameterList_SEMICOLON SEMICOLON shift 97 . errorstate 56 FunctionPrefix : FUNCTION $$47_exportIdent IDENT shift 27 . error ident goto 31 exportIdent goto 98 prIdent goto 30state 57 ProcedurePrefix : PROCEDURE $$43_exportIdent IDENT shift 27 . error ident goto 31 exportIdent goto 99 prIdent goto 30state 58 program : PROGRAM ident zoplsIdent_SEMICOLON $$4 block END DOT SEMICOLON shift 100 . errorstate 59 zoplsIdent : LPAREN_IdentList RPAREN IDENT shift 27 . error ident goto 102 IdentList goto 101state 60 ConstDecl : ConstDecl ConstDef SEMICOLON_ (26) . reduce 26state 61 ConstDef : exportIdent EQUALS_$$27 expression $$27 : _ (27) . reduce 27 $$27 goto 103state 62 TypeDecl : TypeDecl TypeDef $$32_SEMICOLON SEMICOLON shift 104 . errorstate 63 TypeDef : exportIdent EQUALS_$$34 typeDefinition $$34 : _ (34) . reduce 34 $$34 goto 105state 64 VarDecl : VarDecl VarDef $$39_SEMICOLON SEMICOLON shift 106 . errorstate 65 VarDef : varIdentList COLON_$$41 typeDefinition $$41 : _ (41) . reduce 41 $$41 goto 107state 66 varIdentList : varIdentList COMMA_$$296 exportIdent $$296 : _ (296) . reduce 296 $$296 goto 108state 67 IncludeDecl : SHARP INCLUDE $$20_STRCONST STRCONST shift 109 . errorstate 68 LabelDecl : LABEL $$22 oplsElement_SEMICOLON SEMICOLON shift 110 . errorstate 69 oplsElement : ElementList_ (245) ElementList : ElementList_COMMA $$265 Element COMMA shift 111 . reduce 245state 70 ElementList : Element_ (264) . reduce 264state 71 Element : expression_ (261) Element : expression_DOTDOT $$262 expression DOTDOT shift 112 . reduce 261state 72 expression : SimpleExpression_ (227) expression : SimpleExpression_relation SimpleExpression EQUALS shift 114 LESS shift 116 GREATER shift 118 NOTEQUAL shift 115 LSEQUAL shift 117 GREQUAL shift 119 IN shift 120 . reduce 227 relation goto 113state 73 SimpleExpression : lsAddTerm_ (269) lsAddTerm : lsAddTerm_AddOperator term PLUS shift 122 MINUS shift 123 OR shift 124 . reduce 269 AddOperator goto 121state 74 SimpleExpression : PLUS_$$270 lsAddTerm $$270 : _ (270) . reduce 270 $$270 goto 125state 75 SimpleExpression : MINUS_$$272 lsAddTerm $$272 : _ (272) . reduce 272 $$272 goto 126state 76 term : term_MulOperator factor lsAddTerm : term_ (274) ASTERISK shift 128 SLASH shift 129 AND shift 132 DIV shift 130 MOD shift 131 . reduce 274 MulOperator goto 127state 77 term : factor_ (267) . reduce 267state 78 factor : NUMBER_ (211) . reduce 211state 79 factor : CHARCONST_ (212) . reduce 212state 80 factor : STRCONST_ (213) . reduce 213state 81 factor : setexpr_ (214) . reduce 214state 82 factor : designator_ (215) factor : designator_ActualParameters designator : designator_LBRACKET $$222 ExpList RBRACKET designator : designator_UPARROW designator : designator_DOT $$225 prIdent DOT shift 136 LPAREN shift 137 LBRACKET shift 134 UPARROW shift 135 . reduce 215 ActualParameters goto 133state 83 factor : LPAREN_$$217 expression RPAREN $$217 : _ (217) . reduce 217 $$217 goto 138state 84 factor : NOT_$$219 factor $$219 : _ (219) . reduce 219 $$219 goto 139state 85 setexpr : LBRACKET_$$240 oplsElement RBRACKET $$240 : _ (240) . reduce 240 $$240 goto 140state 86 designator : prIdent_ (221) setexpr : prIdent_LBRACE $$242 oplsElement RBRACE LBRACE shift 141 . reduce 221state 87 ConstDecl : CONST $$24 ConstDef_SEMICOLON SEMICOLON shift 142 . errorstate 88 TypeDecl : TYPE $$29 TypeDef_$$30 SEMICOLON $$30 : _ (30) . reduce 30 $$30 goto 143state 89
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -