ANTLRTreeVisitor.h revision 324c4644fee44b9898524c09511bd33c3f12e2df
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ANTLRTreeVisitor.h 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ANTLR 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Created by Alan Condit on 6/18/10. 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// [The "BSD licence"] 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2010 Alan Condit 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// All rights reserved. 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Redistribution and use in source and binary forms, with or without 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// modification, are permitted provided that the following conditions 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are met: 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 1. Redistributions of source code must retain the above copyright 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// notice, this list of conditions and the following disclaimer. 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 2. Redistributions in binary form must reproduce the above copyright 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// notice, this list of conditions and the following disclaimer in the 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// documentation and/or other materials provided with the distribution. 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// 3. The name of the author may not be used to endorse or promote products 192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// derived from this software without specific prior written permission. 202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 32c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#import <Cocoa/Cocoa.h> 33c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#import "ANTLRTreeAdaptor.h" 34c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)#import "ANTLRTreeVisitorAction.h" 35c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) 36c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)@interface ANTLRTreeVisitor : NSObject { 37c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles) id<ANTLRTreeAdaptor> adaptor; 38c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)} 39c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)+ (ANTLRTreeVisitor *)newANTLRTreeVisitor:(id<ANTLRTreeAdaptor>) anAdaptor; 40c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)+ (ANTLRTreeVisitor *)newANTLRTreeVisitor; 41c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)- (id)init; 42c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)- (id)initWithAdaptor:(id<ANTLRTreeAdaptor>)anAdaptor; 432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)- (ANTLRTreeVisitor *)visit:(id<ANTLRTree>)t Action:(ANTLRTreeVisitorAction *)action; 442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) 452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)@end 46c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)