Electronic Notes in Theoretical Computer Science · 2010 · 30 citations · 17 references
ComputingComputer ScienceCompilersProgramming LanguagesSemanticsAbstract Syntax TreesObject-oriented AnalysisObject-oriented ProgrammingSpecification LanguagesSyntax-semantics InterfaceType SystemsAttributesDynamic Scheduling AlgorithmsGeneratorsLanguage Processing ModelsObject-oriented Language DesignPattern MatchingScheduling Algorithms
Attribute grammars are a powerful specification paradigm for many language processing tasks, particularly semantic analysis of programming languages. Recent attribute grammar systems use dynamic scheduling algorithms to evaluate attributes by need. In this paper, we show how to remove the need for a generator, by embedding a dynamic approach in a modern, object-oriented programming language to implement a small, lightweight attribute grammar library. The Kiama attribution library has similar features to current generators, including cached, uncached, circular, higher-order and parameterised attributes, and implements new techniques for dynamic extension and variation of attribute equations. We use the Scala programming language because of its combination of object-oriented and functional features, support for domain-specific notations and emphasis on scalability. Unlike generators with specialised notation, Kiama attribute grammars use standard Scala notations such as pattern-matching functions for equations and mixins for composition. A performance analysis shows that our approach is practical for realistic language processing.
17
Constructing Induction Rules for Deductive Synthesis Proofs
Alan Bundy, Lucas Dixon, Jeremy Gow et al. · Electronic Notes in Theoretical Computer Science · 2006 · 2.8K citations · Full text
Modular domain specific languages and tools
Paul Hudak · 2002 · 335 citations
The jastadd extensible java compiler
Torbjörn Ekman, Görel Hedin · 2007 · 292 citations
Scalable component abstractions
Martin Odersky, Matthias Zenger · 2005 · 251 citations · Full text
Higher order attribute grammars
Harald Vogt, S. Doaitse Swierstra, M.F. Kuiper · 1989 · 215 citations · Full text