Treffer: Pyttern: a Python-Based Program Query Language

Title:
Pyttern: a Python-Based Program Query Language
Source:
Proceedings of the 23nd Belgium-Netherlands Software Evolution Workshop, p. 88-96 (13/03/2025)
Publisher Information:
Gilles Perrouin, Benoît Vanderose, Xavier Devroey 2024
Document Type:
E-Ressource Electronic Resource
Availability:
Open access content. Open access content
info:eu-repo/semantics/openAccess
Note:
English
Other Numbers:
UCDLC oai:dial.uclouvain.be:boreal:293450
boreal:293450
urn:ISSN:1613-0073
1508045220
Contributing Source:
UNIVERSITE CATHOLIQUE DE LOUVAIN
From OAIster®, provided by the OCLC Cooperative.
Accession Number:
edsoai.on1508045220
Database:
OAIster

Weitere Informationen

Despite an abundance of tools available for expressing and detecting structural patterns in program source code, their steep learning curve often creates a barrier for non-expert developers. To address this issue, we present Pyttern, a program query language for Python that is easy to learn and use while maintaining sufficient expressiveness for defining and detecting small structural coding idioms. Pyttern leverages a combination of Python syntax and regex-like wildcards to identify coding patterns. To evaluate the strengths and limitations of our language prototype, we conducted a study involving 30 junior developers. Participants were asked to compare our language with established program query languages by expressing and detecting small coding idioms or flaws. Based on the feedback gathered from this study, we highlight Pyttern's strengths and areas for improvement.