• Search Research Projects
  • Search Researchers
  • How to Use
  1. Back to project page

1994 Fiscal Year Final Research Report Summary

Testing and Error Detection for Formal Specification of Programming Languages and their Translation

Research Project

Project/Area Number 05680269
Research Category

Grant-in-Aid for General Scientific Research (C)

Allocation TypeSingle-year Grants
Research Field 計算機科学
Research InstitutionTokyo Institute of Technology

Principal Investigator

SASSA Masataka  Tokyo Institute of Technology Graduate school of Informatinon Science and ENgineering, Professor, 大学院・情報理工学研究科, 教授 (20016182)

Co-Investigator(Kenkyū-buntansha) WAKITA Ken  Tokyo Institute of Technology Graduate school of Informatinon Science and ENgine, 大学院・情報理工学研究科, 助手 (10242265)
Project Period (FY) 1993 – 1994
KeywordsFormal Specification / Programming Language / Testing / Debugging / Compiler / Attribute Grammar
Research Abstract

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.

  • Research Products

    (10 results)

All Other

All Publications (10 results)

  • [Publications] 佐々政孝ほか: "1パス型属性文法に基づくコンパイラ生成系Rie" コンピュータソフトウェア. 10,3. 20-36 (1993)

    • Description
      「研究成果報告書概要(和文)」より
  • [Publications] 佐々政孝: "属性文法によるコンパイラの記述例" 情報処理. 35,4. 358-369 (1994)

    • Description
      「研究成果報告書概要(和文)」より
  • [Publications] 佐々政孝: "属性文法記述に基づくプログラミング環境の生成方式" コンピュータソフトウェア. 11,4. 44-56 (1994)

    • Description
      「研究成果報告書概要(和文)」より
  • [Publications] 大久保琢也,脇田建,佐々政孝ほか: "属性文法に対するデバッガの開発" 日本ソフトウェア科学会第11回大会論文集. 11. 345-348 (1994)

    • Description
      「研究成果報告書概要(和文)」より
  • [Publications] 太田行紀,脇田建,佐々政孝: "属性文法に基づくテストプログラム生成器の設計と実装" 情報処理学会ソフトウェア工学研究会. SE-103. 185-192 (1995)

    • Description
      「研究成果報告書概要(和文)」より
  • [Publications] 大久保琢也,脇田建,佐々政孝ほか: "属性文法に対するデバッガ" 情報処理学会記号処理研究会. SYM-78. 1-8 (1995)

    • Description
      「研究成果報告書概要(和文)」より
  • [Publications] Sassa, M.: "An Example of Compiler Description Using an Attribute Grammar(in Japannese)" Johoshori, IPS Japan. Vol.35, No.4. 358-369 (1994)

    • Description
      「研究成果報告書概要(欧文)」より
  • [Publications] Sassa, M., Ishizuka, H.and Nakata, I.: "Rie, a Compiler Generator Based on a One-Pass-Type Attribute Grammar" Software-Practice and Experience. (to appear). (1995)

    • Description
      「研究成果報告書概要(欧文)」より
  • [Publications] 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)

    • Description
      「研究成果報告書概要(欧文)」より
  • [Publications] Ookubo, T., Sasaki, A., Wakita, K.and Sassa, M.: "A Debugger for Attribute Grammars(in Japanese)" SIG SYM-78, IPS Japan. (1995)

    • Description
      「研究成果報告書概要(欧文)」より

URL: 

Published: 1996-04-15  

Information User Guide FAQ News Terms of Use Attribution of KAKENHI

Powered by NII kakenhi