Silver: an Extensible Attribute Grammar System
Author(s) -
Eric Van Wyk,
Derek Bodin,
Jimin Gao,
Lijesh Krishnan
Publication year - 2008
Publication title -
electronic notes in theoretical computer science
Language(s) - English
Resource type - Journals
SCImago Journal Rank - 0.242
H-Index - 60
ISSN - 1571-0661
DOI - 10.1016/j.entcs.2008.03.047
Subject(s) - computer science , programming language , attribute grammar , grammar , adaptive grammar , domain (mathematical analysis) , obstacle , domain specific language , natural language processing , extensibility , grammar systems theory , rule based machine translation , matching (statistics) , formal grammar , regular grammar , artificial intelligence , affix grammar , generative grammar , emergent grammar , linguistics , mathematics , mathematical analysis , statistics , political science , law , philosophy
Attribute grammar specification languages, like many domain specific languages, offer significant advantages to their users, such as high-level declarative constructs and domain-specific analyses. Despite these advantages, attribute grammars are often not adopted to the degree that their proponents envision. One practical obstacle to their adoption is a perceived lack of both domain-specific and general purpose language features needed to address the many different aspects of a problem. Here we describe Silver, an extensible attribute grammar specification language, and show how it can be extended with general purpose features such as pattern matching and domain specific features such as collection attributes and constructs for supporting data-flow analysis of imperative programs. The result is an attribute grammar specification language with a rich set of language features. Silver is implemented in itself by a Silver attribute grammar and utilizes forwarding to implement the extensions in a cost-effective manner
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom