Testing and Error Detection for Formal Specification of Programming Languages and their Translation
Testing and Error Detection for Formal Specification of Programming Languages and their Translation
批准号:
05680269
负责人:
SASSA Masataka
金额:
$1.28万
依托单位国家:
日本
项目类别:
Grant-in-Aid for General Scientific Research (C)
财政年份:
1993
资助国家:
日本
项目状态:
已结题
起止时间:
1993 至 1994
中文摘要
在这项研究中,我们开发了测试和调试编程语言的正式规范及其翻译的方法(例如。,编译器)。有几种方法可以描述这样的规范。其中,我们采用了属性语法,它可以表达语义(静态语义)、执行(动态语义和解释)和翻译(例如。(代码生成)的编程语言。为了测试和调试正式规范,从实用的角度来看,以下两种工具是必要的:(a)当我们在规范中发现错误(在语义、执行和翻译方面)时帮助调试规范的工具,以及(b)从编程语言的正式规范及其翻译中生成用于测试规范的源程序的工具。对于(a),我们将最初在逻辑编程语言调试中提出的算法调试技术应用于属性语法,开发了一种bug定位方法。我们进一步对算法进行了扩展,明确了算法与属性语法类的关系。我们使用一个名为Jun的生成器制作了一个原型系统,它基于一类属性语法。我们认为这项研究具有很高的独创性,因为以往的工作很少涉及系统的属性语法调试。至于(b),我们开发了一种方法来生成语法和语义正确/不正确的源程序,给定编程语言的语法和语义。使用Prolog制作了一个原型系统。我们研究的一个特点是,我们可以通过设置属性语法的上下文条件(编程语言必须满足的语义条件)true/false来生成语义正确/错误的测试程序。
英文摘要
In this research we developed methods for testing and debugging the formal specification of programming languages and their translation(e.g., compilers).There are several ways to describe such a specification. Among others, we adopted the attribute grammar which can express the semantics(static semantics), execution(dynamic semantics and interpretation), and translation(e.g., code generation) of programming languages.In order to test and debug a formal specification, the following two kinds of tools are necessary from the practical point of view : (a) tools to assist debugging the specification when we find errors(in semantics, execution, and translation) in the specification, and(b) tools to generate source programs, to be used to test the specification, from the formal specification of the programming language and its translation.1.As for(a), we developed a bug locating method by applying the algorithmic debugging technique, originally proposed in debugging logic programming languages, to attribute grammars. We further made extensions to the algorithm and clarified the relation of the algorithm to attribute grammar classes. We made a prototype system using a generator called Jun, which is based on a class of attribute grammars. We think this research has high originality, since previous work rarely deals with systematic debugging of attribute grammars.2.As for(b), we developed a method for generating both syntactically and semantically correct/incorrect source programs, given the syntax and semantics of a programming language. A prototype system is made using Prolog. A characteristic feature of our research is that we can generate semantically correct/incorrect test programs by setting the context condition(semantic condition that a programming language must satisfy) of attribute grammars true/false.
期刊论文(19)
专著(0)
科研奖励(0)
会议论文
登录
查看更多内容
佐々政孝: "属性文法によるコンパイラの記述例" 情報処理. 35,4. 358-369 (1994)
Masataka Sasa:“使用属性语法的编译器描述示例”信息处理35,4。
DOI:
--
发表时间:
期刊:
影响因子:
--
作者:
[]
通讯作者:
Ookubo, T., Sasaki, A., Wakita, K.and Sassa, M.: "A Debugger for Attribute Grammars(in Japanese)" SIG SYM-78, IPS Japan. (1995)
Ookubo, T.、Sasaki, A.、Wakita, K. 和 Sassa, M.:“属性语法调试器(日语)”SIG SYM-78,IPS 日本。
DOI:
--
发表时间:
期刊:
影响因子:
--
作者:
[]
通讯作者:
Oota, Y., Wakita, K.and Sassa, M.: "Design and Implementation of a Test Program Generator Based on Attribute Grammars(in Japanese)" SIG SE-103, IPS Japan. (1995)
Oota, Y.、Wakita, K. 和 Sassa, M.:“基于属性语法的测试程序生成器的设计和实现(日语)”SIG SE-103,IPS 日本。
DOI:
--
发表时间:
期刊:
影响因子:
--
作者:
[]
通讯作者:
Sassa, M.: "An Example of Compiler Description Using an Attribute Grammar(in Japannese)" Johoshori, IPS Japan. Vol.35, No.4. 358-369 (1994)
Sassa, M.:“使用属性语法的编译器描述示例(日语)”Johoshori,IPS 日本。
DOI:
--
发表时间:
期刊:
影响因子:
--
作者:
[]
通讯作者:
大久保琢也,脇田建,佐々政孝ほか: "属性文法に対するデバッガの開発" 日本ソフトウェア科学会第11回大会論文集. 11. 345-348 (1994)
Takuya Okubo、Ken Wakita、Masataka Sasa 等人:“属性语法调试器的开发”日本软件学会第 11 届年会论文集 11. 345-348 (1994)。
DOI:
--
发表时间:
期刊:
影响因子:
--
作者:
[]
通讯作者:
共 15 条
Generation and verification of COINS compiler optimizers using temporal logic and high-level extensions of optimizers
-
批准号:22300007
-
项目类别:Grant-in-Aid for Scientific Research (B)
-
资助金额:$11.56万
-
财政年份:2010
-
负责人:SASSA Masataka
-
依托单位:
Generation and verification of compiler optimizers using temporal logic and high-level SSA form optimization considering aliases
-
批准号:19300006
-
项目类别:Grant-in-Aid for Scientific Research (B)
-
资助金额:$12.06万
-
财政年份:2007
-
负责人:SASSA Masataka
-
依托单位:
New methods for translation and optimization using SSA form in compilers and their validation systems
-
批准号:16500016
-
项目类别:Grant-in-Aid for Scientific Research (C)
-
资助金额:$2.24万
-
财政年份:2004
-
负责人:SASSA Masataka
-
依托单位:
Optimizations for advanced architectures using compiler infrastructures
-
批准号:13680399
-
项目类别:Grant-in-Aid for Scientific Research (C)
-
资助金额:$2.3万
-
财政年份:2001
-
负责人:SASSA Masataka
-
依托单位:
Compilers for newest architectures using the SSA form intermediate language
-
批准号:11680347
-
项目类别:Grant-in-Aid for Scientific Research (C)
-
资助金额:$2.3万
-
财政年份:1999
-
负责人:SASSA Masataka
-
依托单位:
Integrated Programming Language Processor Generator with Algorithm Animation
-
批准号:08458065
-
项目类别:Grant-in-Aid for Scientific Research (B)
-
资助金额:$4.35万
-
财政年份:1996
-
负责人:SASSA Masataka
-
依托单位:
Development of Free Software for Practical Compiler Generator Based on Attribute Grammars
-
批准号:05558028
-
项目类别:Grant-in-Aid for Developmental Scientific Research (B)
-
资助金额:$3.9万
-
财政年份:1994
-
负责人:SASSA Masataka
-
依托单位:
Automatic Generation of an Integrated Programming Environment Based on Attribute Grammar Model
-
批准号:03680023
-
项目类别:Grant-in-Aid for General Scientific Research (C)
-
资助金额:$1.28万
-
财政年份:1991
-
负责人:SASSA Masataka
-
依托单位:
海外基金