diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-27 00:04:28 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-27 00:04:28 -0700 |
commit | f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816 (patch) | |
tree | 3e62207265b4efbbe1565ea885a615e5a910671c /src/astleafliteral.cpp | |
parent | 32c32bc48c8fd7cffca301b8919fb26726f6467e (diff) | |
download | stage-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.cpp | 19 |
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 | |||
5 | AstLeafLiteral::AstLeafLiteral( const Variable &v ) : | ||
6 | AstNode( AstNode::tLiteral ), | ||
7 | vValue( v ) | ||
8 | { | ||
9 | } | ||
10 | |||
11 | AstLeafLiteral::~AstLeafLiteral() | ||
12 | { | ||
13 | } | ||
14 | |||
15 | Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l ) | ||
16 | { | ||
17 | return f << l.getType() << "::" << l.vValue; | ||
18 | } | ||
19 | |||