From f33fdd93ef93fdbb0e6b3a8e2ecb80b78f1b2816 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 27 Dec 2011 00:04:28 -0700 Subject: Branch building has started. --- src/astleafliteral.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/astleafliteral.cpp (limited to 'src/astleafliteral.cpp') 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 @@ +#include "astleafliteral.h" + +#include + +AstLeafLiteral::AstLeafLiteral( const Variable &v ) : + AstNode( AstNode::tLiteral ), + vValue( v ) +{ +} + +AstLeafLiteral::~AstLeafLiteral() +{ +} + +Bu::Formatter &operator<<( Bu::Formatter &f, const AstLeafLiteral &l ) +{ + return f << l.getType() << "::" << l.vValue; +} + -- cgit v1.2.3