An automatic 'visitor' generator for ada

Autor: Ricky E. Sward, Martin C. Carlisle
Rok vydání: 2002
Předmět:
Zdroj: ACM SIGAda Ada Letters. :42-47
ISSN: 1094-3641
Popis: 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.
Databáze: OpenAIRE