About | Contact Us | Register | Login
ProceedingsSeriesJournalsSearchEAI
8th International Conference on Bio-inspired Information and Communications Technologies (formerly BIONETICS)

Research Article

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

Cite
BibTeX Plain Text
  • @INPROCEEDINGS{10.4108/icst.bict.2014.257977,
        author={Kazuaki Maeda},
        title={Parser Development with an Internal Domain-Specific Language and an Aspect Weaver},
        proceedings={8th International Conference on Bio-inspired Information and Communications Technologies (formerly BIONETICS)},
        publisher={ICST},
        proceedings_a={BICT},
        year={2015},
        month={2},
        keywords={parser development domain-specific language aspect-oriented programming ruby},
        doi={10.4108/icst.bict.2014.257977}
    }
    
  • Kazuaki Maeda
    Year: 2015
    Parser Development with an Internal Domain-Specific Language and an Aspect Weaver
    BICT
    ACM
    DOI: 10.4108/icst.bict.2014.257977
Kazuaki Maeda1,*
  • 1: Chubu University
*Contact email: kmaeda@gmail.com

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.

Keywords
parser development, domain-specific language, aspect-oriented programming, ruby
Published
2015-02-02
Publisher
ICST
Appears in
ACM Digital Library
http://dx.doi.org/10.4108/icst.bict.2014.257977
Copyright © 2014–2026 ICST
EBSCOProQuestDBLPDOAJPortico
EAI Logo

About EAI

  • Who We Are
  • Leadership
  • Research Areas
  • Partners
  • Media Center

Community

  • Membership
  • Conference
  • Recognition
  • Sponsor Us

Publish with EAI

  • Publishing
  • Journals
  • Proceedings
  • Books
  • EUDL