KIT | KIT-Bibliothek | Impressum | Datenschutz

Embedding a Questionnaire DSL with SugarJ

Erdweg, Sebastian ORCID iD icon 1
1 Institut für Programmstrukturen und Datenorganisation (IPD), Karlsruher Institut für Technologie (KIT)

Abstract (englisch):

We describe our SugarJ-based solution to the 2013 Language Workbench Competition. As part of this competition, we developed domain-specific language (DSL) for questionnaires that features conditional questions, locally defined questions, derived values, name checking, type checking, checking for overlapping question instances, and basic tool support such as code coloring. Using SugarJ, we have realized the questionnaire DSL as a language extension of Java that translates a questionnaire into a Java Swing component. We have realized the questionnaire DSL via separate components for the syntax, code generation, tool support, name checking, type checking, and overlap checking. Moreover, we use SugarJ’s support for layout-sensitive syntax to use indentation instead of parentheses in the design of the questionnaire DSL. The source code of the questionnaire DSL is available online: https://github.com/seba--/sugarj/tree/questionnaire/case-studies/questionnaire-language.


Zugehörige Institution(en) am KIT Institut für Programmstrukturen und Datenorganisation (IPD)
Publikationstyp Proceedingsbeitrag
Publikationsjahr 2013
Sprache Englisch
Identifikator KITopen-ID: 1000188541
Erschienen in Proceedings of Language Workbench Challenge (LWC); Indianapolis, IN, USA, 26.-28.10.2013
Veranstaltung 6th International Conference on Software Language Engineering (2013), Indianapolis, IN, USA, 26.10.2013 – 28.10.2013
Seiten 11 S.
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page