Work

Metamodel-based Language Definition with Python

Year: 2023
Type: article
Abstract: Most of the parser tools are concentrated on concrete syntax and grammar definition. This paper describes a language definition tool that uses a metamodel specification instead of grammar as the basis of the language definition. Inspired by a similar Java tool known as YAJCo, the metamodel is defined using usual object-oriented techniques—as classes in the Python programming language, and the result of the parsing process is a graph of objects. The tool is demonstrated in a case study of a simple imperative programming language. We explain our design decisions and also demonstrate the suitability of a dynamic language such, as Python, for this task.
Language: English
Subfield: Software
Open Access status: hybrid
OpenAlex ID: W4327850339
FWCI: 0.185
Cites: 12
Cited by: 1
Related to: 10