aboutsummaryrefslogtreecommitdiffstats
path: root/value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'value.cpp')
-rw-r--r--value.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/value.cpp b/value.cpp
deleted file mode 100644
index a0f0acc..0000000
--- a/value.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "value.h"
-#include <string>
-
-Value::Value(Token& token) {
- if (!token.isString()) {
- m_type = Value::Type::Integer;
- m_intData = std::stoi(token.getLexeme(), nullptr, 10);
- } else {
- m_type = Value::Type::String;
- m_strData = token.getLexeme();
- }
-}
-
-
-const Value::Type Value::getType() const {
- return m_type;
-}
-
-const int Value::getIntData() const {
- return m_intData;
-}
-
-const std::string& Value::getStrData() const {
- return m_strData;
-}