summaryrefslogtreecommitdiff
path: root/src/astbranch.h
blob: 26aac805d775c456cb355a0411696dcf0c6078b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef AST_BRANCH_H
#define AST_BRANCH_H

#include "astnode.h"

#include <bu/list.h>

class AstBranch : public AstNode
{
friend Bu::Formatter &operator<<( Bu::Formatter &f, const AstBranch &b );
public:
	AstBranch( Type eType );
	virtual ~AstBranch();

	AstNode *addNode( AstNode *pNode );

	typedef Bu::List<AstNode *> NodeList;

private:
	AstBranch *pParent;
	NodeList lNodes;
};

Bu::Formatter &operator<<( Bu::Formatter &f, const AstBranch &b );

#endif