2
* Definition of the ANTLR3 common tree adaptor.
5
#ifndef _ANTLR3_COMMON_TREE_ADAPTOR_H
6
#define _ANTLR3_COMMON_TREE_ADAPTOR_H
9
// Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
10
// http://www.temporal-wave.com
11
// http://www.linkedin.com/in/jimidle
13
// All rights reserved.
15
// Redistribution and use in source and binary forms, with or without
16
// modification, are permitted provided that the following conditions
18
// 1. Redistributions of source code must retain the above copyright
19
// notice, this list of conditions and the following disclaimer.
20
// 2. Redistributions in binary form must reproduce the above copyright
21
// notice, this list of conditions and the following disclaimer in the
22
// documentation and/or other materials provided with the distribution.
23
// 3. The name of the author may not be used to endorse or promote products
24
// derived from this software without specific prior written permission.
26
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
27
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
29
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
30
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
31
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
#include <antlr3defs.h>
38
#include <antlr3collections.h>
39
#include <antlr3string.h>
40
#include <antlr3basetreeadaptor.h>
41
#include <antlr3commontree.h>
42
#include <antlr3debugeventlistener.h>
48
typedef struct ANTLR3_COMMON_TREE_ADAPTOR_struct
50
/** Any enclosing structure/class can use this pointer to point to its own interface.
54
/** Base interface implementation, embedded structure
56
ANTLR3_TREE_ADAPTOR baseAdaptor;
58
/** Tree factory for producing new nodes as required without needing to track
59
* memory allocation per node.
61
pANTLR3_ARBORETUM arboretum;
64
ANTLR3_COMMON_TREE_ADAPTOR;