Adding domain-specific and general purpose language features to Java with the Java language extender

Eric Van Wyk, Lijesh Krishnan, Derek Bodin, Eric Johnson

Research output: Chapter in Book/Report/Conference proceedingConference contribution

6 Scopus citations

Abstract

The Java Language Extender is a compiler-generator tool that allows programmers to create new domain-adapted languages by importing a set of domain-specific language extensions into an extensible specification of Java 1.4. Language extensions define the syntax, semantic analysis, and optimizations of new language constructs. Java and the language extensions are specified as attribute grammar fragments written in Silver, an attribute grammar language supporting forwarding and higher-order attributes. Programmers need no implementation-level knowledge of the language extensions and the Silver tools automatically compose the programmer-selected extensions and the Java host language specification. We demonstrate several language extensions. One embeds the SQL database query language into Java and statically checks for syntax and type errors in SQL queries. Other extensions for the domain of computational geometry provide transformations that simplify the writing of efficient and robust geometric algorithms. General purpose extensions include Java 1.5 features such as the for-each loop and auto-boxing and unboxing and features from Pizza such as pattern matching.

Original languageEnglish (US)
Title of host publicationCompanion to the 21st ACM SIGPLAN Conference on Object-oriented Programming Systems, Languages, and Applications, OOPSLA 2006
Pages728-729
Number of pages2
DOIs
StatePublished - 2006
Event21st Annual ACM SIGPLAN Conference on Object-oriented Programming Systems, Languages, and Applications, OOPSLA 2006 - Portland, OR, United States
Duration: Oct 22 2006Oct 26 2006

Publication series

NameProceedings of the Conference on Object-Oriented Programming Systems, Languages, and Applications, OOPSLA
Volume2006

Other

Other21st Annual ACM SIGPLAN Conference on Object-oriented Programming Systems, Languages, and Applications, OOPSLA 2006
Country/TerritoryUnited States
CityPortland, OR
Period10/22/0610/26/06

Keywords

  • Attribute grammars
  • Extensible languages
  • Forwarding

Fingerprint

Dive into the research topics of 'Adding domain-specific and general purpose language features to Java with the Java language extender'. Together they form a unique fingerprint.

Cite this