Politehnika i dizajn, Vol. 11 No. 3, 2023.
Stručni rad
https://doi.org/10.19279/TVZ.PD.2023-11-3-03
LEGO++: A FRAMEWORK FOR IMPLEMENTING DOMAIN-SPECIFIC LANGUAGES WITH PREDEFINED SYNTAX
Aleksandar Stojanović
; Tehničko veleučilište u Zagrebu, Vrbik 8, Zagreb, Hrvatska
*
Željko Kovačević
; Tehničko veleučilište u Zagrebu, Vrbik 8, Zagreb, Hrvatska
Silvio Plehati
; Tehničko veleučilište u Zagrebu, Vrbik 8, Zagreb, Hrvatska
Branimir Barun
; Ministarstvo obrane Republike Hrvatske (MORH), Trg kralja Petra Krešimira IV br. 1, Zagreb, Hrvatska
* Autor za dopisivanje.
Sažetak
The implementation of domain languages can be a demanding task because it includes knowledge of the domain, definition of syntax and semantics, and development of the interpreter or compiler. Furthermore, extending such languages with new syntax forms, such as adding new commands, may require complex implementation modifications. This paper describes a programming framework Lego++ that facilitates the implementation of domain languages by using a consistent language syntax and an implementation that enables the addition of new commands without modifying the interpreter itself. Furthermore, the user (programmer) does not have to know the details of the interpreter's inner working, only the interface that provides access to the source code elements, such as command parameter values or the result of a command block execution, as well as the abstract syntax tree of the source code. This framework is implemented in C++ and its performance is comparable to other similar program frameworks or implementations.
Ključne riječi
Domain language; interpreter; extensible; consistent syntax
Hrčak ID:
311522
URI
Datum izdavanja:
24.11.2023.
Posjeta: 187 *