CommonASTWithHiddenTokens.cpp
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
源码类别:
编译器/解释器
开发平台:
Others
- #include "antlr/config.hpp"
- #include "antlr/CommonASTWithHiddenTokens.hpp"
- #include "antlr/CommonHiddenStreamToken.hpp"
- ANTLR_BEGIN_NAMESPACE(antlr)
- void CommonASTWithHiddenTokens::initialize(RefToken t)
- {
- CommonAST::initialize(t);
- hiddenBefore = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenBefore();
- hiddenAfter = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenAfter();
- }
- RefAST CommonASTWithHiddenTokens::factory()
- { return RefAST(new CommonASTWithHiddenTokens); }
- ANTLR_END_NAMESPACE