aboutsummaryrefslogtreecommitdiffstats
path: root/token.h
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.h
parentc59f10a0b0f58840c02327fc602a681c5410b212 (diff)
Add token class
Diffstat (limited to 'token.h')
-rw-r--r--token.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/token.h b/token.h
new file mode 100644
index 0000000..b6ad24d
--- /dev/null
+++ b/token.h
@@ -0,0 +1,11 @@
+#pragma once
+#include <string>
+
+class Token {
+ private:
+ std::string m_lexeme;
+ bool m_isString;
+
+ public:
+ Token(std::string& lexeme, bool isString);
+};