From 83aec26230a7ba54cc0e04a541c1ddc9d9bbde7b Mon Sep 17 00:00:00 2001 From: jimtahu Date: Sat, 27 Apr 2013 13:32:11 -0500 Subject: [PATCH] we now can assign and fetch variables --- PrintStatement.cpp | 8 ++++++++ PrintStatement.h | 1 + 2 files changed, 9 insertions(+) diff --git a/PrintStatement.cpp b/PrintStatement.cpp index 542a7bf..6d8bb11 100644 --- a/PrintStatement.cpp +++ b/PrintStatement.cpp @@ -5,14 +5,22 @@ * Author: jimtahu */ +#include + #include "PrintStatement.h" namespace ParseTree { +using namespace std; + PrintStatement::PrintStatement(Value *output) { this->value=output; } +void PrintStatement::Execute(){ + cout<value->getValue()<