2014compiler课件Ch6_4章节(464KB).pptVIP

  • 2
  • 0
  • 约1.24万字
  • 约 31页
  • 2018-04-01 发布于未知
  • 举报
Chapter 6 Semantic Analyzer for TINY Context-free Grammar for TINY program - stmt-sequence stmt-sequence - stmt-sequence ; statement | statement statement - if-stmt | repeat-stmt | assign-stmt| read-stmt | write-stmt if-stmt - if exp then stmt-sequence end | if exp then stmt-sequence else stmt-sequence end repeat-stmt - repeat stmt-sequence until exp assign-stmt - identifier := exp read-stmt - read identifier write-stmt - write exp exp - simple-exp comp-op simple-exp | simple-exp comp-op - | = simple-exp - simple-exp addop term | term addop - + | - term - term mulop factor | f

文档评论(0)

1亿VIP精品文档

相关文档