summaryrefslogtreecommitdiff
path: root/src/astleafliteral.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-27 00:04:28 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-27 00:04:28 -0700
commitf33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816 (patch)
tree3e62207265b4efbbe1565ea885a615e5a910671c /src/astleafliteral.cpp
parent32c32bc48c8fd7cffca301b8919fb26726f6467e (diff)
downloadstage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.tar.gz
stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.tar.bz2
stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.tar.xz
stage-f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816.zip
Branch building has started.
Diffstat (limited to 'src/astleafliteral.cpp')
-rw-r--r--src/astleafliteral.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/astleafliteral.cpp b/src/astleafliteral.cpp
new file mode 100644
index 0000000..a2a0808
--- /dev/null
+++ b/src/astleafliteral.cpp
@@ -0,0 +1,19 @@
1#include "astleafliteral.h"
2
3#include <bu/formatter.h>
4
5AstLeafLiteral::AstLeafLiteral( const Variable &v ) :
6 AstNode( AstNode::tLiteral ),
7 vValue( v )
8{
9}
10
11AstLeafLiteral::~AstLeafLiteral()
12{
13}
14
15Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l )
16{
17 return f << l.getType() << "::" << l.vValue;
18}
19