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