首页> 中文期刊> 《计算机工程与设计 》 >基于Z规格的LR(k)形式化分析及验证

基于Z规格的LR(k)形式化分析及验证

             

摘要

During the construction of the compiler,complier may generate an incorrect source program due to bugs,such as ambiguity of semantic,in itself.So,a new approach of verification of correctness of semantic and syntax is presented,which links context-free grammar and Z specification to construct formal specification and formal verification of LR (k).The experiment demonstrates that the approach tests the ambiguity of semantic and syntax error of LR (k) to improve the validity of the compiler efficiently.%在编译器的构造中,常由于语义的二义性等问题导致不正确的目标程序.为解决此问题,提出了一种新型的语法及语义正确性验证方案,即建立LR (k)文法和Z规格说明的联系,以此构造LR (k)文法的形式化描述及其形式化验证.实验结果表明,该方案能有效描述并检测LR (k)文法分析器中的语法错误及语义二义性,有助于提高分析器的有效性.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号