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 am KIT | Institut für Programmstrukturen und Datenorganisation (IPD) |
|---|---|
| Sprache | englisch |
| KITopen-ID | 1000188541 |
| Veranstaltung | 6th International Conference on Software Language Engineering, Indianapolis, IN, USA, 26. – 28.10.2013 |