Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Lexer.cpp
diff options
context:
space:
mode:
Commitf8ccf5eedb60435b7fac66521554beab582c0b00 (patch)
Author
 alexvitkov <44268717+alexvitkov@users.noreply.github.com>
2020-10-24 17:58:54 +0300
Committer
 GitHub <noreply@github.com>
2020-10-24 17:58:54 +0300
Filescbee6e087ffc49463c69553c9505f4b9a7baa5ce /JSImpl/src/Lexer.cpp
IPL-f8ccf5eedb60435b7fac66521554beab582c0b00.tar
IPL-f8ccf5eedb60435b7fac66521554beab582c0b00.tar.gz
IPL-f8ccf5eedb60435b7fac66521554beab582c0b00.zip
Parentd5fd7629fc6b85df0f27f3069bffef407a94cef8 (diff)
JSImpl: Implemented ASTInterpreter::Visit for unary + and - (#87)
* JSImpl: Implemented ASTInterpreter::Visit for unary + and - * JSImpl: Added tests for unary + and - * JSImpl: fixed appveyor ubuntu build Co-authored-by: Martin Dobrev <martindobrev0@gmail.com>
1 files changed, 1 insertions, 2 deletions
-rw-r--r--JSImpl/src/Lexer.cpp3
diff --git a/JSImpl/src/Lexer.cpp b/JSImpl/src/Lexer.cpp
index 0f6f4a6..4a2deb8 100644
--- a/JSImpl/src/Lexer.cpp
+++ b/JSImpl/src/Lexer.cpp
@@ -179,8 +179,7 @@ Tokenizer::Tokenizer(const char* code, const LexerSettings& settings)
LexerResult Tokenizer::Tokenize()
{
- LexerResult result;
- result.IsSuccessful = true;
+ LexerResult result{ true, IPLError(), IPLVector<Token>() };
Token token;
do
{