summaryrefslogtreecommitdiff
path: root/src/astleafliteral.cpp
blob: 116aeb63c1832da32954ad2739d21acac0dbf43c (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
#include "astleafliteral.h"

#include <bu/formatter.h>

AstLeafLiteral::AstLeafLiteral( const Variable &v ) :
	AstNode( AstNode::tLiteral ),
	vValue( v )
{
}

AstLeafLiteral::AstLeafLiteral( AstNode eType, const Variable &v ) :
	AstNode( eType ),
	vValue( v )
{
}

AstLeafLiteral::~AstLeafLiteral()
{
}

Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l )
{
	return f << l.getType() << "::" << l.vValue;
}