Home >

news ヘルプ

論文・著書情報


タイトル
和文: 
英文:Hygienic Macro System for JavaScript and Its Light-weight Implementation Framework 
著者
和文: 脇田 建, 甫水 佳奈子, 佐々木 晃.  
英文: Ken Wakita, Kanako Homizu, Akira Sasaki.  
言語 English 
掲載誌/書名
和文: 
英文:Proceedings of ILC 2014 on 8th International Lisp Conference 
巻, 号, ページ        
出版年月 2014年8月14日 
出版者
和文: 
英文:ACM 
会議名称
和文: 
英文:8th International Lisp Conference 
開催地
和文: 
英文:Montreal 
公式リンク https://dl.acm.org/citation.cfm?id=2635653
 
DOI https://doi.org/10.1145/2635648.2635653
アブストラクト In spite of its soundness, ease of use, and descriptive power, few hygienic macro systems have been incorporated to non-LISP programming languages. The difficulty lies in the self-describing nature of the macro system. Proposed is the design and a systematic implementation framework of hygienic macro systems for general programming languages. In addition to the standard syntax-rules macro features, our macro system incorporates handling of punctuations and keywords, introduces invisible blocks of code called phantom groups, and proposes the notion of suffix pattern to address problems due to recursive macro definitions. These features have been introduced to deal with richer syntax of general programming languages. The proposed implementation framework incorporates staged parser architecture, a parser generation technique using parsing expression grammars, and mutual conversion technique between the macro-enabled host language and Scheme that allows our macro system to delegate actual macro expansion task to a Scheme interpreter, instead of building hygienic macro expander from scratch. ExJS, our prototype implementation of a hygienic macro system for JavaScript, is implemented in less than 2,000 lines of JavaScript and Scheme, and exhibits its flexible syntactic extensibility.

©2007 Tokyo Institute of Technology All rights reserved.