1887

n South African Computer Journal - An object oriented approach to parser generation in C++

USD

 

Abstract

In this paper we describe the design and implementation of a system for representing context-free grammars in C++ . the system allows for grammar representation at the object level, providing enhanced modularity and flexibility when compared to traditional generator-based approaches. We also describe the transformation of grammar flow analysis problems into an object-oriented framework using the Visitor pattern, as well as the implementation of a top-down LL(1) parser. As such, this work represents the synthesis of three presently disparate fields in parser design and implementation: combinator parsing, fixpoint-based grammar flow analysis, and object-oriented design.

Loading

Article metrics loading...

/content/comp/2000/26/EJC27882
2000-11-01
2016-12-03
This is a required field
Please enter a valid email address
Approval was a Success
Invalid data
An Error Occurred
Approval was partially successful, following selected items could not be processed due to error