⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 antlr3parser.h

📁 antlr最新版本V3源代码
💻 H
字号:
/** \file * Base implementation of an ANTLR3 parser. * * */#ifndef	_ANTLR3_PARSER_H#define	_ANTLR3_PARSER_H#include    <antlr3defs.h>#include    <antlr3baserecognizer.h>/** This is the main interface for an ANTLR3 parser. */typedef	struct ANTLR3_PARSER_struct{    /** All superstructre implementors of this interface require a pointer to theirselves,     *  whcih they can refernce using the super pointer here.     */    void			* super;    /** A pointer to the base recognizer, where most of the parser functions actually     *  live because they are shared between parser and tree parser and this is the     *  easier way than copying the interface all over the place. Macros hide this     *  for the generated code so it is easier on the eye (though not the debugger ;-).     */    pANTLR3_BASE_RECOGNIZER	rec;    /** A provider of a tokenstream interface, for the parser to consume     *  tokens from.     */    pANTLR3_TOKEN_STREAM	tstream;    /** A pointer to a function that installs a token stream      * for the parser.     */    void			(*setTokenStream)	(struct ANTLR3_PARSER_struct	* parser, pANTLR3_TOKEN_STREAM);    /** A pointer to a function that returns the token stream for this      *  parser.     */    pANTLR3_TOKEN_STREAM	(*getTokenStream)	(struct ANTLR3_PARSER_struct	* parser);    /** Pointer to a function that knows how to free resources of an ANTLR3 parser.     */    void			(*free)			(struct ANTLR3_PARSER_struct	* parser);}    ANTLR3_PARSER;#endif

⌨️ 快捷键说明

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