编译原理1概述.pptVIP

  • 1
  • 0
  • 约7.36千字
  • 约 56页
  • 2016-12-19 发布于江苏
  • 举报
术语 语义分析(semantic analysis) The parsed program is further analyzed to determine whether it conforms to the source language’s contextual constraints:scope rules, type rules e.g. To relate each applied occurrence of an identifier in the source program to the corresponding declaration. 中间代码生成 源程序的内部(中间)表示 三元式、四元式 ( * id3 t1 t2 ) t2 = id3 * t1 id1:= id2 + id3 * 60 (1) (inttoreal, 60 - t1 ) (2) (* , id3 t1 t2 ) (3) (+ , id2 t2 t3 ) (4) (:= , t3 - id1 ) 中间代码生成(intermediate code generation) This is where the intermediate representation of the source program is created.We want th

文档评论(0)

1亿VIP精品文档

相关文档