Developing a Domain-Specific Language for Cognitive Tests Using TextX

Domain-specific languages (DSLs) enable researchers and practitioners to work at a higher level of abstraction, leveraging domain-specific concepts to improve efficiency, readability, and maintainability. textX, a meta-language and tool for DSL development, simplifies the creation of such languages by providing an intuitive and flexible framework. In this paper, we showcase the power of textX through the development of PyFlies, a DSL designed for specifying cognitive experiments. PyFlies streamlines experiment design by offering a concise, human-readable syntax that eliminates the complexities of general-purpose programming. Using the Mental Rotation Test as a case study, we demonstrate how PyFlies enhances productivity and reproducibility by automatically generating executable experiments for platforms like PsychoPy. Our results highlight the advantages of textX and DSLs in reducing development effort while making experiment design more accessible to researchers with limited programming expertise.

Authors

Institutions

Publication Details

Published
2025-02-19
DOI
https://doi.org/10.1109/it64745.2025.10930310
Citations
1
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Developing a Domain-Specific Language for Cognitive Tests Using TextX

Igor Dejanović, Mirjana Dejanović
1 citations
Topic Modeling
2.48
article

Developing a Domain-Specific Language for Cognitive Tests Using TextX

Igor Dejanović, Mirjana Dejanović
article en
1 citations

Abstract

Domain-specific languages (DSLs) enable researchers and practitioners to work at a higher level of abstraction, leveraging domain-specific concepts to improve efficiency, readability, and maintainability. textX, a meta-language and tool for DSL development, simplifies the creation of such languages by providing an intuitive and flexible framework. In this paper, we showcase the power of textX through the development of PyFlies, a DSL designed for specifying cognitive experiments. PyFlies streamlines experiment design by offering a concise, human-readable syntax that eliminates the complexities of general-purpose programming. Using the Mental Rotation Test as a case study, we demonstrate how PyFlies enhances productivity and reproducibility by automatically generating executable experiments for platforms like PsychoPy. Our results highlight the advantages of textX and DSLs in reducing development effort while making experiment design more accessible to researchers with limited programming expertise.

University of Novi Sad (RS), University of Prishtina (XK)
Quality Education
Openalex Percentile: Top 11%
Topic Modeling
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.