首页> 外国专利> Method and apparatus for generating a translator program for a compiler/interpreter and for testing the resulting translator program

Method and apparatus for generating a translator program for a compiler/interpreter and for testing the resulting translator program

机译:用于为编译器/解释器生成翻译器程序并测试所得翻译器程序的方法和装置

摘要

A translator writing system develops a translator program capable of transforming a user's source code into object code. The language of the source code is summarized in a unique form, namely, a Backus-Nauer Form (BNF). This BNF form of the source code is utilized by the translator writing system to transform the source code into object code. The BNF form takes into account the attribute specifications associated with the language of the source code and the interaction of the attribute specifications in the grammar of the language of the source code. The translator writing system includes a valid testcase generator for testing the developed translator program utilizing every possible correct program statement in the language of the user's source code. The translator writing system further includes an incorrect, invalid testcase generator for testing the developed translator program utilizing every possible incorrect, invalid program statement in the language of the user's source code. As a result, the amount of effort required to test the developed translator program has been significantly reduced.
机译:译者写作系统开发了一种译者程序,该程序能够将用户的源代码转换为目标代码。源代码的语言以独特的形式概括,即Backus-Nauer形式(BNF)。译者编写系统利用这种BNF形式的源代码将源代码转换为目标代码。 BNF格式考虑了与源代码的语言相关联的属性规范以及属性规范在源代码的语言语法中的交互作用。译者编写系统包括一个有效的测试用例生成器,用于使用用户源代码的语言中的每个可能的正确程序语句来测试开发的译者程序。译者编写系统还包括一个错误的,无效的测试用例生成器,用于使用用户源代码的语言中的每个可能的错误的,无效的程序语句来测试开发的翻译器程序。结果,大大减少了测试开发的翻译程序所需的工作量。

著录项

  • 公开/公告号US4729096A

    专利类型

  • 公开/公告日1988-03-01

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号US19840664264

  • 发明设计人 LAWRENCE E. LARSON;

    申请日1984-10-24

  • 分类号G06F11/04;

  • 国家 US

  • 入库时间 2022-08-22 06:49:26

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号