Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 14-Day Trial for You or Your Team.

Learn More →

An automatic visitor generator for ada

An automatic visitor generator for ada An Automatic "Visitor" Generator for Ada Martin C. Carlisle Department of Computer Science 2354 Fairchild Dr., Suite 1J133 US Air Force Academy, CO 80840 c a r l is I e m @ a c m , o r g Ricky E. Sward Department of Computer Science 2354 Fairchild Dr., Suite 1J134 US Air Force Academy, CO 80840 1 Introduction This paper describes work that has been done to automatically generate code that implements the Visitor design pattern for a specified grammar. This work is an extension of the work done on the Ada Generator of Object-Oriented Parsers (AdaGOOP) [Car00]. AdaGOOP creates lexer and parser specifications automatically given a specific grammar. The lexer and parser specifications include all methods needed to generate the parse tree. Our work extends AdaGOOP by automatically including the code for visitor objects that can perform operations on the parse tree generated by AdaGOOP. This paper first describes the Visitor design pattern and the benefits of implementing this pattern, then describes the AdaGOOP tool in more detail and how the tool was extended to automatically generate visitor objects. Finally, we present examples of the visitor objects generated by AdaGOOP. 2 Visitor Design Pattern Implementing http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png ACM SIGAda Ada Letters Association for Computing Machinery

An automatic visitor generator for ada

ACM SIGAda Ada Letters , Volume XXII (3) – Sep 1, 2002

Loading next page...
 
/lp/association-for-computing-machinery/an-automatic-visitor-generator-for-ada-sewyEM70m8

References (3)

Publisher
Association for Computing Machinery
Copyright
Copyright © 2002 by ACM Inc.
ISSN
1094-3641
DOI
10.1145/570326.570330
Publisher site
See Article on Publisher Site

Abstract

An Automatic "Visitor" Generator for Ada Martin C. Carlisle Department of Computer Science 2354 Fairchild Dr., Suite 1J133 US Air Force Academy, CO 80840 c a r l is I e m @ a c m , o r g Ricky E. Sward Department of Computer Science 2354 Fairchild Dr., Suite 1J134 US Air Force Academy, CO 80840 1 Introduction This paper describes work that has been done to automatically generate code that implements the Visitor design pattern for a specified grammar. This work is an extension of the work done on the Ada Generator of Object-Oriented Parsers (AdaGOOP) [Car00]. AdaGOOP creates lexer and parser specifications automatically given a specific grammar. The lexer and parser specifications include all methods needed to generate the parse tree. Our work extends AdaGOOP by automatically including the code for visitor objects that can perform operations on the parse tree generated by AdaGOOP. This paper first describes the Visitor design pattern and the benefits of implementing this pattern, then describes the AdaGOOP tool in more detail and how the tool was extended to automatically generate visitor objects. Finally, we present examples of the visitor objects generated by AdaGOOP. 2 Visitor Design Pattern Implementing

Journal

ACM SIGAda Ada LettersAssociation for Computing Machinery

Published: Sep 1, 2002

There are no references for this article.