CommonASTWithHiddenTokens.hpp
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
源码类别:
编译器/解释器
开发平台:
Others
- #ifndef INC_CommonASTWithHiddenTokens_hpp__
- #define INC_CommonASTWithHiddenTokens_hpp__
- /** A CommonAST whose initialization copies hidden token
- * information from the Token used to create a node.
- */
- #include "antlr/config.hpp"
- #include "antlr/CommonAST.hpp"
- ANTLR_BEGIN_NAMESPACE(antlr)
- class CommonASTWithHiddenTokens : public CommonAST {
- protected:
- RefToken hiddenBefore,hiddenAfter; // references to hidden tokens
- public:
- RefToken getHiddenAfter() const
- { return hiddenAfter; }
- RefToken getHiddenBefore() const
- { return hiddenBefore; }
- void initialize(RefToken t);
- static RefAST factory();
- };
- typedef ASTRefCount<CommonASTWithHiddenTokens> RefCommonASTWithHiddenTokens;
- ANTLR_END_NAMESPACE
- #endif //INC_CommonASTWithHiddenTokens_hpp__