CommonASTWithHiddenTokens.cpp
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
源码类别:

编译器/解释器

开发平台:

Others

  1. #include "antlr/config.hpp"
  2. #include "antlr/CommonASTWithHiddenTokens.hpp"
  3. #include "antlr/CommonHiddenStreamToken.hpp"
  4. ANTLR_BEGIN_NAMESPACE(antlr)
  5. void CommonASTWithHiddenTokens::initialize(RefToken t)
  6. {
  7. CommonAST::initialize(t);
  8. hiddenBefore = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenBefore();
  9. hiddenAfter = static_cast<CommonHiddenStreamToken*>(t.get())->getHiddenAfter();
  10. }
  11. RefAST CommonASTWithHiddenTokens::factory()
  12. { return RefAST(new CommonASTWithHiddenTokens); }
  13. ANTLR_END_NAMESPACE