aboutsummaryrefslogtreecommitdiffstats
path: root/src/token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/token.cpp')
-rw-r--r--src/token.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/token.cpp b/src/token.cpp
new file mode 100644
index 0000000..6e9e5e2
--- /dev/null
+++ b/src/token.cpp
@@ -0,0 +1,14 @@
+#include "token.h"
+
+Token::Token(std::string& lexeme, bool isString) :
+ m_lexeme(lexeme), m_isString(isString) {
+
+}
+
+const std::string& Token::getLexeme() const {
+ return m_lexeme;
+}
+
+bool Token::isString() const {
+ return m_isString;
+}