]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.databoard/cpp/DataBoardTest/libantlr3c-3.2/include/antlr3commontreeadaptor.h
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.databoard / cpp / DataBoardTest / libantlr3c-3.2 / include / antlr3commontreeadaptor.h
1 /** \file\r
2  * Definition of the ANTLR3 common tree adaptor.\r
3  */\r
4 \r
5 #ifndef _ANTLR3_COMMON_TREE_ADAPTOR_H\r
6 #define _ANTLR3_COMMON_TREE_ADAPTOR_H\r
7 \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
12 //\r
13 // All rights reserved.\r
14 //\r
15 // Redistribution and use in source and binary forms, with or without\r
16 // modification, are permitted provided that the following conditions\r
17 // are met:\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
25 //\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
36 \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
43 \r
44 #ifdef __cplusplus\r
45 extern "C" {\r
46 #endif\r
47 \r
48 typedef struct ANTLR3_COMMON_TREE_ADAPTOR_struct\r
49 {\r
50     /** Any enclosing structure/class can use this pointer to point to its own interface.\r
51      */\r
52     void    * super;\r
53 \r
54     /** Base interface implementation, embedded structure\r
55      */\r
56     ANTLR3_TREE_ADAPTOR baseAdaptor;\r
57 \r
58     /** Tree factory for producing new nodes as required without needing to track\r
59      *  memory allocation per node.\r
60      */\r
61     pANTLR3_ARBORETUM   arboretum;\r
62 \r
63 }\r
64     ANTLR3_COMMON_TREE_ADAPTOR;\r
65 \r
66 #ifdef __cplusplus\r
67 }\r
68 #endif\r
69 \r
70 #endif\r