7#include "antlr/config.hpp"
12#include "antlr/CommonAST.hpp"
13#include "antlr/ANTLRUtil.hpp"
15#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
19const char*
const CommonAST::TYPE_NAME =
"CommonAST";
21#ifdef ANTLR_SUPPORT_XML
24 ANTLR_USE_NAMESPACE(std)
string t1, t2, text;
27 read_AttributeNValue( in, t1, text );
29 read_AttributeNValue( in, t1, t2 );
30#ifdef ANTLR_ATOI_IN_STD
31 int type = ANTLR_USE_NAMESPACE(std)atoi(t2.c_str());
33 int type = atoi(t2.c_str());
41RefAST CommonAST::factory()
43 return RefAST(
new CommonAST);
46#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
virtual void initialize(int t, const std ::string &txt)
Various initialization routines.