Parser Development with an Internal Domain-Specific Language and an Aspect Weaver.

BICT(2015)

引用 0|浏览0
暂无评分
摘要
This paper describes an internal domain-specific language (DSL) to write syntax rules and action code in Ruby. Parser generators read a mixture of the syntax rules and the action code written in one of the general-purpose languages. If the action code contains trivial syntax errors, the parser generators do not analyze the code; they generate source code containing the syntax errors. To resolve this situation, an internal DSL to define syntax rules was designed as a subset of Ruby. Moreover, action code is injected into the generated parser using an aspect weaver. In the author's preliminary experience, productivity was improved in the design and implementation of parsers.
更多
查看译文
关键词
domain specific language,aspect oriented programming
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要