aboutsummaryrefslogtreecommitdiffstats
path: root/token.cpp
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-08-31 18:59:42 +0000
committerJan Tuomi <jans.tuomi@gmail.com>2016-08-31 18:59:42 +0000
commit251a9af5e8c4976373b71935457d1ce17c6888a1 (patch)
tree33313df7f059bbf3a825d83d7ef0273b2ec012c2 /token.cpp
parentc59f10a0b0f58840c02327fc602a681c5410b212 (diff)
Add token class
Diffstat (limited to 'token.cpp')
-rw-r--r--token.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/token.cpp b/token.cpp
new file mode 100644
index 0000000..560f89e
--- /dev/null
+++ b/token.cpp
@@ -0,0 +1,7 @@
+#include "token.h"
+
+Token::Token(std::string& lexeme, bool isString) :
+ m_lexeme(lexeme), m_isString(isString) {
+
+}
+