From 50bafbdd68160d00606a4e83d9759c21223c11f8 Mon Sep 17 00:00:00 2001 From: jantuomi Date: Thu, 1 Sep 2016 11:20:59 +0300 Subject: Restructure project --- src/token.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/token.cpp (limited to 'src/token.cpp') 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; +} -- cgit v1.3