Treffer: Semantics-Based Rapid Prototyping of a Subset of SQL : RISC Report Series, 25-02

Title:
Semantics-Based Rapid Prototyping of a Subset of SQL : RISC Report Series, 25-02
Publisher Information:
Johannes Kepler Universität Linz
Publication Year:
2025
Collection:
Johannes Kepler University Linz: JKU
Subject Geographic:
Document Type:
Buch book
File Description:
179 Seiten; text/html
Language:
English
Relation:
vignette : https://epub.jku.at/titlepage/urn/urn:nbn:at:at-ubl:3-24808/128; local:99148835452003331; system:AC17448588
DOI:
10.35011/risc.25-02
Rights:
CC BY 4.0
Accession Number:
edsbas.87BE8EC4
Database:
BASE

Weitere Informationen

This report documents the application of our semantics-based language generator SLANG to developing a rapid prototype of a non-trivial domain-specific language, a substantial subset of the Structured Query Language SQL that we have named SubSQL. After developing a mathematical/logical formulation of the language's abstract syntax, formal type system, and denotational semantics, we have translated this formulation into a SLANG specification from which the SLANG software generates Java code that implements a parser, a printer, a type-checker, and an executor of the language. This implementation is based on several manually created Java classes that implement the mathematical domains and operations used in the formalization, a simple persistent database, and a high-level application programming interface that allows to execute complete SubSQL scripts from file or individual SubSQL commands within Java programs. The results represent a blueprint for the semantics-based development of other domain-specific languages of similar complexity.