2014compiler课件Ch3_1new2007章节(313KB).pptVIP

  • 3
  • 0
  • 约1.01万字
  • 约 33页
  • 2018-04-01 发布于未知
  • 举报
Syntax Tree Structure for Simple Arithmetic Expressions typedef enum {Plus, Minus, Times} OpKind; typedef enum {OpK, ConstK} ExpKind; typedef struct streenode { ExpKind kind; Opkind op; struct streetnode * lchild, *rchild; int val; } STreeNode; typedef STreeNode * SyntaxTree Example 3.8 statement - if-stmt | other if-stmt - if (exp) statement | if (exp) statement else statement exp - 0 | 1 statement if-stmt if ( exp ) statement else statement 0

文档评论(0)

1亿VIP精品文档

相关文档