Adding a syntax macro facility to

Larry Morell, Xin Wan

Journal of Computing Sciences in Colleges(2020)

引用 0|浏览2
暂无评分
摘要
iGen is a system for specifying and building programming language interpreters. iGen has been enhanced to include a macro facility that enables the underlying grammar to be extended by the programmer when the new construct can be defined in terms of existing constructs. We call this a syntax macro facility because the macros are defined via new grammar rules, which are implemented by the iGen parser. Each macro declares a new syntax rule and gives its meaning in terms of code in the programming language. iGen implements macro definitions by extending the parser to recognize the new construct. When an iGen parser encounters the new syntax it transforms the parse tree of new construct into a tree that corresponds to the semantics given in the macro.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要