class

来自「编译原理课程设计之pp2语法分析程序」· 代码 · 共 44 行

TXT
44
字号
   Program:   1   ClassDecl:   1      Identifier: Cow  2      VarDecl:             Type: int  2         Identifier: height  3      VarDecl:             Type: bool  3         Identifier: isSpotted  4      FnDecl:             (return type) Type: void  4         Identifier: Moo            (body) StmtBlock:                PrintStmt:   5               (args) FieldAccess:   5                  This:   5                  Identifier: height  5               (args) StringConstant: " "  5               (args) FieldAccess:   5                  Identifier: isSpotted  5               (args) StringConstant: "\n" 10   FnDecl:          (return type) Type: void 10      Identifier: main         (body) StmtBlock:  11         VarDecl:  11            NamedType:  11               Identifier: Cow 11            Identifier: betsy 12         ExprStmt:  12            AssignExpr:  12               FieldAccess:  12                  Identifier: betsy 12               Operator: = 12               NewExpr:  12                  NamedType:  12                     Identifier: Cow 13         ExprStmt:  13            Call:  13               FieldAccess:  13                  Identifier: betsy 13               Identifier: Moo

⌨️ 快捷键说明

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