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

#include "astnode.h"
#include "variable.h"

class AstLeafLiteral : public AstNode
{
friend Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l );
public:
	AstLeafLiteral( const Variable &v );
	AstLeafLiteral( AstNode eType, const Variable &v );
	virtual ~AstLeafLiteral();

	const Variable &getValue() const { return vValue; }

private:
	Variable vValue;
};

Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l );

#endif