JSSST2016 Talk & Poster

Posted on September 7, 2016


星野友宏, 高桑健太郎, 渡部卓雄
日本ソフトウェア科学会第33回大会, 東北大学, Sep. 6-9, 2016.



A Method for Implementing Hygienic Macro Definers for OMeta

Tomohiro Hoshino, Kentaro Takakuwa & Takuo Watanabe
JSSST Annual Conference, Sep., 2016 (in Japanese).


Programming languages with macro definition mechanisms often need special treatment for parsing macros. If a macro introduces a new syntax to a language, an extended parser is needed to recognize a code written using the macro. Also, the language might use some specific mechanisms such as pattern matching to define macros. In this paper, we propose a method of introducing hygienic macro definition mechanisms into languages defined in OMeta, an object-oriented language with PEG-based general-purpose pattern matching. Using the proposed method, extended parsers for macro definition are automatically generated from the specifications of macro definition mechanisms.