summaryrefslogtreecommitdiff
path: root/src/astleafliteral.h
blob: c8867e15a380607c622999611ca44f8229ad32c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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 );
	virtual ~AstLeafLiteral();

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

private:
	Variable vValue;
};

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

#endif