1
#ifndef INC_ASTArray_hpp__
2
#define INC_ASTArray_hpp__
4
/* ANTLR Translator Generator
5
* Project led by Terence Parr at http://www.jGuru.com
6
* Software rights: http://www.antlr.org/license.html
8
* $Id: ASTArray.hpp 626096 2007-01-22 06:35:06Z okellogg $
11
#include <antlr/config.hpp>
12
#include <antlr/AST.hpp>
14
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
18
/** ASTArray is a class that allows ANTLR to
19
* generate code that can create and initialize an array
20
* in one expression, like:
21
* (new ASTArray(3))->add(x)->add(y)->add(z)
23
class ANTLR_API ASTArray {
26
ANTLR_USE_NAMESPACE(std)vector<RefAST> array;
28
ASTArray(int capacity)
34
ASTArray* add(RefAST node)
41
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
45
#endif //INC_ASTArray_hpp__