In this paper we describe textX, a meta-language and a tool for building Domain-Specific Languages. It is implemented in Python using Arpeggio PEG (Parsing Expression Grammar) parser library. From a single language description (grammar) textX will build a parser and a meta-model (a.k.a. abstract syntax) of the language. The parser is used to parse textual representations of models conforming to the meta-model. As a result of parsing, a Python object graph will be automatically created. The structure of the object graph will conform to the meta-model defined by the grammar. This approach frees a developer from the need to manually analyse a parse tree and transform it to other suitable representation. The textX library is independent of any integrated development environment and can be easily integrated in any Python project. The textX tool works as a grammar interpreter. The parser is configured at run-time using the grammar. The textX tool is a free and open-source project available at GitHub.
Skip Nav Destination
,
,
,
,
Article navigation
21 July 2017
INTERNATIONAL CONFERENCE OF NUMERICAL ANALYSIS AND APPLIED MATHEMATICS (ICNAAM 2016)
19–25 September 2016
Rhodes, Greece
Research Article|
July 21 2017
A python tool for the implementation of domain-specific languages Available to Purchase
Igor Dejanović;
Igor Dejanović
Faculty of Technical Sciences,
University of Novi Sad
, Novi Sad, Serbia
Search for other works by this author on:
Renata Vaderna;
Renata Vaderna
Faculty of Technical Sciences,
University of Novi Sad
, Novi Sad, Serbia
Search for other works by this author on:
Gordana Milosavljević;
Gordana Milosavljević
Faculty of Technical Sciences,
University of Novi Sad
, Novi Sad, Serbia
Search for other works by this author on:
Miloš Simić;
Miloš Simić
Faculty of Technical Sciences,
University of Novi Sad
, Novi Sad, Serbia
Search for other works by this author on:
Željko Vuković
Željko Vuković
Faculty of Technical Sciences,
University of Novi Sad
, Novi Sad, Serbia
Search for other works by this author on:
Igor Dejanović
Renata Vaderna
Gordana Milosavljević
Miloš Simić
Željko Vuković
Faculty of Technical Sciences,
University of Novi Sad
, Novi Sad, Serbia
AIP Conf. Proc. 1863, 330003 (2017)
Citation
Igor Dejanović, Renata Vaderna, Gordana Milosavljević, Miloš Simić, Željko Vuković; A python tool for the implementation of domain-specific languages. AIP Conf. Proc. 21 July 2017; 1863 (1): 330003. https://doi.org/10.1063/1.4992501
Download citation file:
Pay-Per-View Access
$40.00
Sign In
You could not be signed in. Please check your credentials and make sure you have an active account and try again.
Citing articles via
The implementation of reflective assessment using Gibbs’ reflective cycle in assessing students’ writing skill
Lala Nurlatifah, Pupung Purnawarman, et al.
Classification data mining with Laplacian Smoothing on Naïve Bayes method
Ananda P. Noto, Dewi R. S. Saputro
Effect of coupling agent type on the self-cleaning and anti-reflective behaviour of advance nanocoating for PV panels application
Taha Tareq Mohammed, Hadia Kadhim Judran, et al.
Related Content
Conversion of the agent-oriented domain-specific language ALAS into JavaScript
AIP Conf. Proc. (June 2016)
Towards a Scala embedded information system description
AIP Conf. Proc. (July 2019)
Software Development Of XML Parser Based On Algebraic Tools
AIP Conf. Proc. (December 2011)
Overview of data mining with Python modules
AIP Conf. Proc. (February 2023)
User interfaces for computational science: A domain specific language for OOMMF embedded in Python
AIP Advances (February 2017)