Title
Parser Development with an Internal Domain-Specific Language and an Aspect Weaver.
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.
Year
DOI
Venue
2014
10.4108/icst.bict.2014.257977
BICT
Keywords
Field
DocType
domain specific language,aspect oriented programming
Programming language,Computer science,Compiler-compiler,Simple LR parser,Abstract syntax tree,Homoiconicity,Natural language processing,Artificial intelligence,LALR parser,Abstract syntax,Syntax (programming languages),Syntax error
Conference
Citations 
PageRank 
References 
0
0.34
4
Authors
1
Name
Order
Citations
PageRank
Kazuaki Maeda113834.69