antlr3parsetree.h

来自「ANTLR(ANother Tool for Language Recognit」· C头文件 代码 · 共 50 行

H
50
字号
/** \file *  Abstraction of Common tree to provide payload and string representation of node. * * \todo May not need this in the end */#ifndef	ANTLR3_PARSETREE_H#define	ANTLR3_PARSETREE_H#include    <antlr3basetree.h>typedef struct ANTLR3_PARSE_TREE_struct{    /** Any interface that implements methods in this interface     *  may need to point back to itself using this pointer to its     *  super structure.     */    void    * super;    /** The payload that the parse tree node passes around     */    void    * payload;    /** An encapsulated BASE TREE strcuture (NOT a pointer)      * that perfoms a lot of the dirty work of node management      */    ANTLR3_BASE_TREE	    baseTree;    /** How to dup this node     */    pANTLR3_BASE_TREE	    (*dupNode)	(struct ANTLR3_PARSE_TREE_struct * tree);    /** Return the type of this node     */    ANTLR3_UINT32	    (*getType)	(struct ANTLR3_PARSE_TREE_struct * tree);    /** Return the string representation of the payload (must be installed     *  when the payload is added and point to a function that knwos how to      *  manifest a pANTLR3_STRING from a node.     */    pANTLR3_STRING	    (*toString)	(struct ANTLR3_PARSE_TREE_struct * payload);    void		    (*free)	(struct ANTLR3_PARSE_TREE_struct * tree);}    ANTLR3_PARSE_TREE;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?