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

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
Project Status Completed (Fiscal Year 1994)
Budget Amount *help
¥2,000,000 (Direct Cost: ¥2,000,000)
Fiscal Year 1994: ¥900,000 (Direct Cost: ¥900,000)
Fiscal Year 1993: ¥1,100,000 (Direct Cost: ¥1,100,000)
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.

Report

(3 results)
  • 1994 Annual Research Report   Final Research Report Summary
  • 1993 Annual Research Report
  • Research Products

    (15 results)

All Other

All Publications (15 results)

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

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

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

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

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

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

    • Description
      「研究成果報告書概要(和文)」より
    • Related Report
      1994 Final Research Report Summary
  • [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
      「研究成果報告書概要(欧文)」より
    • Related Report
      1994 Final Research Report Summary
  • [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
      「研究成果報告書概要(欧文)」より
    • Related Report
      1994 Final Research Report Summary
  • [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
      「研究成果報告書概要(欧文)」より
    • Related Report
      1994 Final Research Report Summary
  • [Publications] Ookubo, T., Sasaki, A., Wakita, K.and Sassa, M.: "A Debugger for Attribute Grammars(in Japanese)" SIG SYM-78, IPS Japan. (1995)

    • Description
      「研究成果報告書概要(欧文)」より
    • Related Report
      1994 Final Research Report Summary
  • [Publications] 太田行紀,ほか: "属性文法に基づくテストプログラム生成器の設計と実装" 情報処理学会ソフトウェア工学研究会. SE-103. (1995)

    • Related Report
      1994 Annual Research Report
  • [Publications] 大久保琢也,ほか: "属性文法に対するデバッグの開発" 日本ソフトウェア科学会第11回大会論文集. 11. 345-348 (1994)

    • Related Report
      1994 Annual Research Report
  • [Publications] 大久保琢也,ほか: "属性文法に対するデバッガ" 情報処理学会記号処理研究会. SYM-78. (1995)

    • Related Report
      1994 Annual Research Report
  • [Publications] 佐々 政孝: "属性文法に基づくプログラミング環境の生成方法" コンピュータソフトウェア. 11,4. 300-312 (1994)

    • Related Report
      1994 Annual Research Report
  • [Publications] 大久保 琢也: "属性文法に対するデバッグ方式の構想" 情報処理学会第48回全国大会論文集. 48. 76-7 (1994)

    • Related Report
      1993 Annual Research Report

URL: 

Published: 1993-04-01   Modified: 2016-04-21  

Information User Guide FAQ News Terms of Use Attribution of KAKENHI

Powered by NII kakenhi