Parser Development with an Internal Domain-Specific Language and an Aspect Weaver

Maeda, Kazuaki (2014) Parser Development with an Internal Domain-Specific Language and an Aspect Weaver. In: 8th International Conference on Bio-inspired Information and Communications Technologies (formerly BIONETICS).

[thumbnail of 21183.pdf] PDF
21183.pdf

Download (134kB)

Abstract

This paper describes an internal domain-specific language (DSL) to write syntax rules and action code in Ruby. Parser generators read a mixture of the syntax rules and the action code written in one of the general-purpose languages. If the action code contains trivial syntax errors, the parser generators do not analyze the code; they generate source code containing the syntax errors. To resolve this situation, an internal DSL to define syntax rules was designed as a subset of Ruby. Moreover, action code is injected into the generated parser using an aspect weaver. In the author's preliminary experience, productivity was improved in the design and implementation of parsers.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Uncontrolled Keywords: parser development, domain-specific language, aspect-oriented programming, ruby
Date Deposited: 04 Mar 2026 10:25
Last Modified: 20 Nov 2026 11:12
URI: https://eprints.eai.eu/id/eprint/12630

Actions (login required)

View Item
View Item