Skip to content

Opening book details…

Can I read SugarJ: library-based syntactic language extensibility on EtoBox?

SugarJ: library-based syntactic language extensibility by Sebastian Erdweg; Tillmann Rendel; Christian Kästner; Klaus Ostermann is a Computer Science article available to read on EtoBox.

What is SugarJ: library-based syntactic language extensibility about?

Existing approaches to extend a programming language with syntactic sugar often leave a bitter taste, because they cannot be used with the same ease as the main extension mechanism of the programming language - libraries. Sugar libraries are a novel approach for syntactically extending a programming language within the language. A sugar library is like an ordinary library, but can, in addition, export syntactic sugar for using the library. Sugar libraries maintain the composability and scoping properties of ordinary libraries and are hence particularly well-suited for embedding a multitude of domain-specific languages into a host language. They also inherit self-applicability from libraries, which means that sugar libraries can provide syntactic extensions for the definition of other sugar libraries. To demonstrate the expressiveness and applicability of sugar libraries, we have developed SugarJ, a language on top of Java, SDF and Stratego, which supports syntactic extensibility. SugarJ employs a novel incremental parsing technique, which allows changing the syntax within a source file. We demonstrate SugarJ by five language extensions, including embeddings of XML and closures in J

Who reads SugarJ: library-based syntactic language extensibility?

It is typically read by researchers, students, and practitioners in Computer Science.

Author
Sebastian Erdweg; Tillmann Rendel; Christian Kästner; Klaus Ostermann
Publisher
ACM
Published
2011
Language
EN
Field
Computer Science (Physical Sciences)

More by Sebastian Erdweg; Tillmann Rendel; Christian Kästner; Klaus Ostermann

Browse all works by Sebastian Erdweg; Tillmann Rendel; Christian Kästner; Klaus Ostermann