Home | History | Annotate | Download | only in include
      1 /** \file
      2  * Definition of the ANTLR3 common tree adaptor.
      3  */
      4 
      5 #ifndef	_ANTLR3_COMMON_TREE_ADAPTOR_H
      6 #define	_ANTLR3_COMMON_TREE_ADAPTOR_H
      7 
      8 // [The "BSD licence"]
      9 // Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC
     10 // http://www.temporal-wave.com
     11 // http://www.linkedin.com/in/jimidle
     12 //
     13 // All rights reserved.
     14 //
     15 // Redistribution and use in source and binary forms, with or without
     16 // modification, are permitted provided that the following conditions
     17 // are met:
     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.
     25 //
     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.
     36 
     37 #include    <antlr3defs.h>
     38 #include    <antlr3collections.h>
     39 #include    <antlr3string.h>
     40 #include    <antlr3basetreeadaptor.h>
     41 #include    <antlr3commontree.h>
     42 #include	<antlr3debugeventlistener.h>
     43 
     44 #ifdef __cplusplus
     45 extern "C" {
     46 #endif
     47 
     48 typedef	struct ANTLR3_COMMON_TREE_ADAPTOR_struct
     49 {
     50     /** Any enclosing structure/class can use this pointer to point to its own interface.
     51      */
     52     void    * super;
     53 
     54     /** Base interface implementation, embedded structure
     55      */
     56     ANTLR3_TREE_ADAPTOR	baseAdaptor;
     57 
     58     /** Tree factory for producing new nodes as required without needing to track
     59      *  memory allocation per node.
     60      */
     61     pANTLR3_ARBORETUM	arboretum;
     62 
     63 }
     64     ANTLR3_COMMON_TREE_ADAPTOR;
     65 
     66 #ifdef __cplusplus
     67 }
     68 #endif
     69 
     70 #endif
     71