Syntactic Language Extension via an Algebra of Languages and Transformations

Electronic Notes in Theoretical Computer Science(2010)

引用 6|浏览0
暂无评分
摘要
We propose an algebra of languages and transformations as a means for extending languages syntactically. The algebra provides a layer of high-level abstractions built on top of languages (captured by context-free grammars) and transformations (captured by constructive catamorphisms). The algebra is self-contained in that any term of the algebra specifying a transformation can be reduced to a catamorphism, before the transformation is run. Thus, the algebra comes ''for free'' without sacrificing the strong safety and efficiency properties of constructive catamorphisms. The entire algebra as presented in the paper is implemented as the Banana Algebra Tool which may be used to syntactically extend languages in an incremental and modular fashion via algebraic composition of previously defined languages and transformations. We demonstrate and evaluate the tool via several kinds of extensions.
更多
查看译文
关键词
context-free grammar,macros,languages syntactically,efficiency property,entire algebra,syntactic language extension,banana algebra tool,transformation,languages,catamorphisms,modular fashion,context-free grammars,syntactic extension,algebra.,algebraic composition,high-level abstraction,bananas,constructive catamorphisms,strong safety,algebra,context free grammar,context free grammars
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要