summaryrefslogtreecommitdiff
path: root/src/astleafliteral.cpp
diff options
context:
space:
mode:
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