⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2.output

📁 打开2.tab.c编译运行
💻 OUTPUT
📖 第 1 页 / 共 3 页
字号:

    $default	reduce using rule 49 (RelationOperator)



state 64

    RelationOperator  ->  LESS .   (rule 50)

    $default	reduce using rule 50 (RelationOperator)



state 65

    RelationOperator  ->  LESSEQUAL .   (rule 51)

    $default	reduce using rule 51 (RelationOperator)



state 66

    RelationOperator  ->  MORE .   (rule 52)

    $default	reduce using rule 52 (RelationOperator)



state 67

    RelationOperator  ->  MOREEQUAL .   (rule 53)

    $default	reduce using rule 53 (RelationOperator)



state 68

    Condition  ->  Expression RelationOperator . Expression   (rule 32)

    ADD 	shift, and go to state 25
    MINUS	shift, and go to state 26
    LPARENTHESES	shift, and go to state 27
    NOSIGNINTEGER	shift, and go to state 28
    IDENT	shift, and go to state 29

    Expression	go to state 93
    TermList	go to state 32
    Term	go to state 33
    GeneList	go to state 34
    Gene	go to state 35



state 69

    TermList  ->  TermList ADD . Term   (rule 39)

    LPARENTHESES	shift, and go to state 27
    NOSIGNINTEGER	shift, and go to state 28
    IDENT	shift, and go to state 29

    Term	go to state 94
    GeneList	go to state 34
    Gene	go to state 35



state 70

    TermList  ->  TermList MINUS . Term   (rule 40)

    LPARENTHESES	shift, and go to state 27
    NOSIGNINTEGER	shift, and go to state 28
    IDENT	shift, and go to state 29

    Term	go to state 95
    GeneList	go to state 34
    Gene	go to state 35



state 71

    GeneList  ->  GeneList MULTIPLY . Gene   (rule 43)

    LPARENTHESES	shift, and go to state 27
    NOSIGNINTEGER	shift, and go to state 28
    IDENT	shift, and go to state 29

    Gene	go to state 96



state 72

    GeneList  ->  GeneList DIVIDE . Gene   (rule 44)

    LPARENTHESES	shift, and go to state 27
    NOSIGNINTEGER	shift, and go to state 28
    IDENT	shift, and go to state 29

    Gene	go to state 97



state 73

    WhileStatement  ->  WHILE Condition DO . Statement   (rule 54)

    IF  	shift, and go to state 1
    WHILE	shift, and go to state 2
    READ	shift, and go to state 3
    WRITE	shift, and go to state 4
    CALL	shift, and go to state 5
    BEGIN	shift, and go to state 6
    IDENT	shift, and go to state 10

    $default	reduce using rule 27 (Statement)

    Statement	go to state 98
    EvaluateStatement	go to state 17
    ComplexStatement	go to state 18
    ConditionStatement	go to state 19
    WhileStatement	go to state 20
    ProcedureCallStatement	go to state 21
    ReadStatement	go to state 22
    WriteStatement	go to state 23



state 74

    IdentList  ->  IdentList . COMMA IDENT   (rule 16)
    ReadStatement  ->  READ LPARENTHESES IdentList . RPARENTHESES   (rule 56)

    RPARENTHESES	shift, and go to state 99
    COMMA	shift, and go to state 82



state 75

    ExpressionList  ->  Expression .   (rule 58)

    $default	reduce using rule 58 (ExpressionList)



state 76

    WriteStatement  ->  WRITE LPARENTHESES ExpressionList . RPARENTHESES   (rule 57)
    ExpressionList  ->  ExpressionList . COMMA Expression   (rule 59)

    RPARENTHESES	shift, and go to state 100
    COMMA	shift, and go to state 101



state 77

    ComplexStatement  ->  BEGIN StatementList END .   (rule 29)

    $default	reduce using rule 29 (ComplexStatement)



state 78

    StatementList  ->  StatementList SEMICOLON . Statement   (rule 31)

    IF  	shift, and go to state 1
    WHILE	shift, and go to state 2
    READ	shift, and go to state 3
    WRITE	shift, and go to state 4
    CALL	shift, and go to state 5
    BEGIN	shift, and go to state 6
    IDENT	shift, and go to state 10

    $default	reduce using rule 27 (Statement)

    Statement	go to state 102
    EvaluateStatement	go to state 17
    ComplexStatement	go to state 18
    ConditionStatement	go to state 19
    WhileStatement	go to state 20
    ProcedureCallStatement	go to state 21
    ReadStatement	go to state 22
    WriteStatement	go to state 23



state 79

    ConstDefination  ->  IDENT EVALUATE . NOSIGNINTEGER   (rule 13)

    NOSIGNINTEGER	shift, and go to state 103



state 80

    ConstList  ->  ConstList COMMA . ConstDefination   (rule 12)

    IDENT	shift, and go to state 42

    ConstDefination	go to state 104



state 81

    ConstantDeclaration  ->  CONST ConstList SEMICOLON .   (rule 10)

    $default	reduce using rule 10 (ConstantDeclaration)



state 82

    IdentList  ->  IdentList COMMA . IDENT   (rule 16)

    IDENT	shift, and go to state 105



state 83

    VariableDeclaration  ->  VAR IdentList SEMICOLON .   (rule 14)

    $default	reduce using rule 14 (VariableDeclaration)



state 84

    ProcedureHead  ->  PROCEDURE IDENT SEMICOLON .   (rule 19)

    $default	reduce using rule 19 (ProcedureHead)



state 85

    EvaluateStatement  ->  IDENT EVALUATE Expression .   (rule 28)

    $default	reduce using rule 28 (EvaluateStatement)



state 86

    PartialProgram  ->  ConstantDeclaration VariableDeclaration ProcedureDeclaration . Statement   (rule 2)

    IF  	shift, and go to state 1
    WHILE	shift, and go to state 2
    READ	shift, and go to state 3
    WRITE	shift, and go to state 4
    CALL	shift, and go to state 5
    BEGIN	shift, and go to state 6
    IDENT	shift, and go to state 10

    $default	reduce using rule 27 (Statement)

    Statement	go to state 106
    EvaluateStatement	go to state 17
    ComplexStatement	go to state 18
    ConditionStatement	go to state 19
    WhileStatement	go to state 20
    ProcedureCallStatement	go to state 21
    ReadStatement	go to state 22
    WriteStatement	go to state 23



state 87

    PartialProgram  ->  ConstantDeclaration VariableDeclaration Statement .   (rule 5)

    $default	reduce using rule 5 (PartialProgram)



state 88

    PartialProgram  ->  ConstantDeclaration ProcedureDeclaration Statement .   (rule 4)

    $default	reduce using rule 4 (PartialProgram)



state 89

    PartialProgram  ->  VariableDeclaration ProcedureDeclaration Statement .   (rule 3)

    $default	reduce using rule 3 (PartialProgram)



state 90

    ProcedureDeclaration  ->  ProcedureHead PartialProgram SEMICOLON . ProcedureDeclaration SEMICOLON   (rule 17)
    ProcedureDeclaration  ->  ProcedureHead PartialProgram SEMICOLON .   (rule 18)

    PROCEDURE	shift, and go to state 9

    $default	reduce using rule 18 (ProcedureDeclaration)

    ProcedureDeclaration	go to state 107
    ProcedureHead	go to state 15



state 91

    Gene  ->  LPARENTHESES Expression RPARENTHESES .   (rule 47)

    $default	reduce using rule 47 (Gene)



state 92

    ConditionStatement  ->  IF Condition THEN Statement .   (rule 34)

    $default	reduce using rule 34 (ConditionStatement)



state 93

    Condition  ->  Expression RelationOperator Expression .   (rule 32)

    $default	reduce using rule 32 (Condition)



state 94

    TermList  ->  TermList ADD Term .   (rule 39)

    $default	reduce using rule 39 (TermList)



state 95

    TermList  ->  TermList MINUS Term .   (rule 40)

    $default	reduce using rule 40 (TermList)



state 96

    GeneList  ->  GeneList MULTIPLY Gene .   (rule 43)

    $default	reduce using rule 43 (GeneList)



state 97

    GeneList  ->  GeneList DIVIDE Gene .   (rule 44)

    $default	reduce using rule 44 (GeneList)



state 98

    WhileStatement  ->  WHILE Condition DO Statement .   (rule 54)

    $default	reduce using rule 54 (WhileStatement)



state 99

    ReadStatement  ->  READ LPARENTHESES IdentList RPARENTHESES .   (rule 56)

    $default	reduce using rule 56 (ReadStatement)



state 100

    WriteStatement  ->  WRITE LPARENTHESES ExpressionList RPARENTHESES .   (rule 57)

    $default	reduce using rule 57 (WriteStatement)



state 101

    ExpressionList  ->  ExpressionList COMMA . Expression   (rule 59)

    ADD 	shift, and go to state 25
    MINUS	shift, and go to state 26
    LPARENTHESES	shift, and go to state 27
    NOSIGNINTEGER	shift, and go to state 28
    IDENT	shift, and go to state 29

    Expression	go to state 108
    TermList	go to state 32
    Term	go to state 33
    GeneList	go to state 34
    Gene	go to state 35



state 102

    StatementList  ->  StatementList SEMICOLON Statement .   (rule 31)

    $default	reduce using rule 31 (StatementList)



state 103

    ConstDefination  ->  IDENT EVALUATE NOSIGNINTEGER .   (rule 13)

    $default	reduce using rule 13 (ConstDefination)



state 104

    ConstList  ->  ConstList COMMA ConstDefination .   (rule 12)

    $default	reduce using rule 12 (ConstList)



state 105

    IdentList  ->  IdentList COMMA IDENT .   (rule 16)

    $default	reduce using rule 16 (IdentList)



state 106

    PartialProgram  ->  ConstantDeclaration VariableDeclaration ProcedureDeclaration Statement .   (rule 2)

    $default	reduce using rule 2 (PartialProgram)



state 107

    ProcedureDeclaration  ->  ProcedureHead PartialProgram SEMICOLON ProcedureDeclaration . SEMICOLON   (rule 17)

    SEMICOLON	shift, and go to state 109



state 108

    ExpressionList  ->  ExpressionList COMMA Expression .   (rule 59)

    $default	reduce using rule 59 (ExpressionList)



state 109

    ProcedureDeclaration  ->  ProcedureHead PartialProgram SEMICOLON ProcedureDeclaration SEMICOLON .   (rule 17)

    $default	reduce using rule 17 (ProcedureDeclaration)



state 110

    $   	go to state 111



state 111

    $   	go to state 112



state 112

    $default	accept


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -