@inproceedings{RISC7155,author = {William Steingartner and Wolfgang Schreiner},
title = {{Executable Semantics for Teaching Concatenative Stack-Based DSLs: The Case of StackLang}},
booktitle = {{New Trends in Database and Information Systems, ADBIS 2025 Short Papers, Doctoral Consortium and Tutorials, Tampere, Finland, September 23-26, 2025, Proceedings}},
language = {english},
abstract = {In the context of teaching computer science, many domain-specific languages (DSLs) used for data manipulation and transformation follow imperative paradigms, yet their semantics remain informal or tool-dependent. This paper proposes a pedagogical framework based on executable formal semantics to improve conceptual understanding and practical competence in such DSLs. Using a minimal imperative DSL developed as a teaching tool to illustrate arithmetic and data transformations, we define its syntax and semantics using denotational semantics and develop an executable interpreter directly derived from the formal rules. The framework enables students to explore and visualize the effects of each language construct, reason about program behavior, and verify correctness properties. We present a case study in which we focus on the gradual use of cross-curricular relationships and gradually build a comprehensive package for students that draws on knowledge from several courses focused on formal methods in software engineering. The paper concludes with a discussion of the potential of this methodology to bridge the gap between formal methods and practical education in the field of computer science.},
series = {Communications in Computer and Information Science (CCIS)},
volume = {2676},
pages = {248--263},
publisher = {Springer},
address = {Cham, Switzerland},
isbn_issn = {ISBN 978-3-032-05726-6},
year = {2025},
editor = {Panos K. Chrysanthis and Kjetil Nørvåg and Kostas Stefanidis and Zheying Zhang and Elisa Quintarelli and Ester Zumpano},
refereed = {yes},
keywords = {formal semantics, domain-specific languages, computer science education},
sponsor = {Aktion Österreich–Slowakei project 2024-05-15-001, KEGA project 030TUKE-4/2023},
length = {15},
url = {https://doi.org/10.1007/978-3-032-05727-3_23}
}