编译原理第一章Introduction to Course.pptVIP

  • 3
  • 0
  • 约2.84万字
  • 约 76页
  • 2017-11-28 发布于湖北
  • 举报
编译原理第一章Introduction to Course

* 北京化工大学信息科学与技术学院计算机系 * ● Micro语言的语义分析程序 Procedure Semantic(); begin Creat; //建空符号表 ReadToken(); //读掉$begin LD: ReadToken(token);//读声明/语句头符 case token.LH of $var {ReadToken(token); //($id,name) Enter(token.RH,Entry,s); if s=true then Error(1); // 重复声明错 ReadToken(); ReadToken(token);//: $int/$real case token.LH of $int SetAttribute(entry,newAddr,intType);

文档评论(0)

1亿VIP精品文档

相关文档