期刊文献+

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

Formal analysis and verification of LR(k) based on Z
下载PDF
导出
摘要 在编译器的构造中,常由于语义的二义性等问题导致不正确的目标程序。为解决此问题,提出了一种新型的语法及语义正确性验证方案,即建立LR(k)文法和Z规格说明的联系,以此构造LR(k)文法的形式化描述及其形式化验证。实验结果表明,该方案能有效描述并检测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-flee 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.
作者 张杨 段富
出处 《计算机工程与设计》 CSCD 北大核心 2013年第7期2403-2407,共5页 Computer Engineering and Design
基金 山西省自然科学基金项目(2008011039) 山西省科技攻关基金项目(20080322008)
关键词 LR(k)文法 形式化描述 形式化验证 Z规格 语法 语义 LR (k) formal specification formal verification Z specification syntax semantic
  • 相关文献

参考文献10

  • 1Zafar N A, Khan S A, Kamran B. Formal procedure of deriving language from context-free grammar [C] //International Conference on Intelligence and Information Technology, 2010: 533-536.
  • 2Briaisa S, Nestmannb U. A formal semantics for protocol narrations [J]. Theoretical Computer Science, 2007, 389 (3) : 484-511.
  • 3Booch G, Rumbaugh J, Jacobson I. The unified modeling language user guide[M]. 2nd ed. Beijing, China: Machine Press, 2006.
  • 4Hasan O, Tahar S. Verification of probabilistic properties in the HOL theorem prover [J] Integrated Formal Methods. Berlin: Springer, 2007, 132 (8): 333-352.
  • 5Freitas L, Woodcock J, Zhang Y. Verifying the CICS file control API with Z/Eves: An experiment in the verified software repository [J]. Science of Computer Programming, 2009, 74 (4): 197-218.
  • 6Idani A, Ledru Y. Dynamic graphical UML views from formal B specifications [J]. Information and Software Technology, 2005, 3 (8): 154-168.
  • 7Lima V, Talhi C, Mouheb D, et al. Formal verification and validation of UML2. 0 sequence diagrams using source and destination of messages [J]. Electronic Notes in Theoretical Computer Science, 2009, 254: 143-160.
  • 8Raj A, Prabhakar T V, Hendryx S. Transformation of SBVR business design to UML models[C]//India: Proceedings of the First India Software Engineering Conference, 2008: 112-124.
  • 9Albert M, Gomez C, Cabot J, et al. Automatic generation of basic behavior schemas from UML class diagrams [J]. Soft-ware and Systems Modeling, 2010, 9 (1): 47-67.
  • 10Zafar N A, Kamran B. Formal construction of possible operators on context-free grammar [J]. International Conference on Intelligence and Information Technology, 2010, 52 (7): 223-243.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部