2 |
|
* Project led by Terence Parr at http://www.jGuru.com |
3 |
|
* Software rights: http://www.antlr.org/license.html |
4 |
|
* |
5 |
< |
* $Id: BaseAST.cpp,v 1.1 2005-12-02 15:38:02 tim Exp $ |
5 |
> |
* $Id$ |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "antlr/config.hpp" |
9 |
+ |
|
10 |
|
#include <iostream> |
11 |
|
|
10 |
– |
#include "antlr/config.hpp" |
12 |
|
#include "antlr/AST.hpp" |
13 |
|
#include "antlr/BaseAST.hpp" |
14 |
|
|
17 |
|
namespace antlr { |
18 |
|
#endif |
19 |
|
|
19 |
– |
const char* const BaseAST::TYPE_NAME = "BaseAST"; |
20 |
– |
|
20 |
|
size_t BaseAST::getNumberOfChildren() const |
21 |
|
{ |
22 |
|
RefBaseAST t = this->down; |
270 |
|
// this is nasty, but it makes the code generation easier |
271 |
|
ANTLR_API RefAST nullAST; |
272 |
|
|
273 |
< |
#if defined(_MSC_VER) && !defined(__ICL) // Microsoft Visual C++ |
273 |
> |
#if defined(_MSC_VER) && !defined(__ICL) |
274 |
> |
// Microsoft Visual C++ |
275 |
|
extern ANTLR_API AST* const nullASTptr = 0; |
276 |
|
#else |
277 |
|
ANTLR_API AST* const nullASTptr = 0; |