Zur Hauptnavigation wechseln Zur Suche wechseln Zum Hauptinhalt wechseln

Inferring Attributed Grammars from Parser Implementations

Publikation: Beitrag in Buch/Bericht/TagungsbandKonferenzbeitragBegutachtung

Abstract

Software systems that process structured inputs often lack complete and up-to-date specifications, which specify the input syntax and the semantics of input processing. While grammar mining techniques have focused on recovering syntactic structures, the semantics of input processing remains largely unexplored. In this work, we introduce a novel approach for inferring attributed grammars from parser implementations. Given an input grammar, our technique dynamically analyzes the implementation of recursive descent parsers to reconstruct the semantic aspects of input handling, resulting in specifications in the form of attributed grammars. By observing program executions and mapping the program's runtime behavior to the grammar, we systematically extract and embed semantic actions into the grammar rules. This enables comprehensive specification recovery. We demonstrate the feasibility of our approach using an initial set of programs, showing that it can accurately reproduce program behavior through the generated attributed grammars.

OriginalspracheEnglisch
TitelProceedings - 2025 IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
Herausgeber (Verlag)Institute of Electrical and Electronics Engineers Inc.
Seiten785-790
Seitenumfang6
ISBN (elektronisch)9798331595876
DOIs
PublikationsstatusVeröffentlicht - 2025
Veranstaltung41st IEEE International Conference on Software Maintenance and Evolution, ICSME 2025 - Auckland, Neuseeland
Dauer: 7 Sep. 202512 Sep. 2025

Publikationsreihe

NameProceedings - 2025 IEEE International Conference on Software Maintenance and Evolution, ICSME 2025

Konferenz

Konferenz41st IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
Land/GebietNeuseeland
OrtAuckland
Zeitraum07.09.202512.09.2025

Fingerprint

Untersuchen Sie die Forschungsthemen von „Inferring Attributed Grammars from Parser Implementations“. Zusammen bilden sie einen einzigartigen Fingerprint.

Zitieren