diff options
| author | jantuomi <jans.tuomi@gmail.com> | 2016-09-01 11:20:59 +0300 |
|---|---|---|
| committer | jantuomi <jans.tuomi@gmail.com> | 2016-09-01 11:20:59 +0300 |
| commit | 50bafbdd68160d00606a4e83d9759c21223c11f8 (patch) | |
| tree | 66c58cfb012dc0b7d222a03e8c55507b75e9af1f /src/token.cpp | |
| parent | be011366f249b8ebed3905030ce3b7021597ee34 (diff) | |
Restructure project
Diffstat (limited to 'src/token.cpp')
| -rw-r--r-- | src/token.cpp | 14 |
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; +} |
