Effective Utilization of Existing C Header Files in other languages with different syntaxes

DOI
  • HIRAISHI Tasuku
    Dept. of Communications and Computer Engineering, Graduate School of Informatics, Kyoto University
  • YASUGI Masahiro
    Dept. of Communications and Computer Engineering, Graduate School of Informatics, Kyoto University
  • YUASA Taiichi
    Dept. of Communications and Computer Engineering, Graduate School of Informatics, Kyoto University

Bibliographic Information

Other Title
  • 既存Cヘッダファイルの構文の異なる言語での有効利用

Abstract

We are developing S-expression based C languages, SC languages, and their language system, which supports transformation-based language extension. When we need SC header files corresponding to existing C header files, translating header files into SC by hand will need undesirable implementation cost. So in this research we have implemented a C-to-SC translator. In some cases such a translation is not obvious. In particular, it is sometimes impossible to translate #define macro definitions for the C preprocessor into %defmacro or %defconstant constructs for the SC preprocessor mainly because of their syntactical difference. This paper discusses the limitations of the translation and our pragmatic and reasonable solutions to them. Some of the ideas of our solutions are applicable to translation between other languages.

Journal

  • Computer Software

    Computer Software 23 (2), 225-238, 2006

    Japan Society for Software Science and Technology

Related Projects

See more

Details 詳細情報について

  • CRID
    1390001204737593856
  • NII Article ID
    130004892059
  • DOI
    10.11309/jssst.23.2_225
  • ISSN
    02896540
  • Data Source
    • JaLC
    • CiNii Articles
    • KAKEN
  • Abstract License Flag
    Disallowed

Report a problem

Back to top