清华大学-编译原理第一章幻灯片.pptVIP

  • 1
  • 0
  • 约1.02万字
  • 约 58页
  • 2018-03-27 发布于未知
  • 举报
出错处理 检查错误、报告出错信息、排错、恢复编译工作 出错处理(error handling)(error reporting and error recovery) The compiler should report the location of each error,together with some explanation. The major categories of compile-time error: syntax error, scope error, type error. After detecting and reporting an error,the compiler should attempt error recovery,means that the compiler should try to get itself into a state where analysis of the source program can continue as normally as possible. 编译程序结构(components) 词法分析程序 语法分析程序 语义分析程序 中间代码生成程序 代码优化程序 目标代码生成程序 符号表管理程序 出错处理程序 出 错 处 理 语法分析程序 语义分析程序 目标代码生成程序 词法分析程序 中间代码生成

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档