From eb053bb851d729fbe4db7959143df5cfb2063793 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 18 Dec 2011 01:07:03 -0700 Subject: Setting up AstNode & Variable classes. --- src/variable.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/variable.h (limited to 'src/variable.h') diff --git a/src/variable.h b/src/variable.h new file mode 100644 index 0000000..3df9255 --- /dev/null +++ b/src/variable.h @@ -0,0 +1,37 @@ +#ifndef VARIABLE_H +#define VARIABLE_H + +#include + +#include + +class Variable +{ +public: + enum Type + { + Undef, + Int, + Float, + Bool, + String + }; + +public: + Variable(); + virtual ~Variable(); + +private: + Type eType; + bool bNull; + + union + { + int64_t iValue; + double fValue; + bool bValue; + Bu::String *sValue; + }; +}; + +#endif -- cgit v1.2.3