Equality and comparison

This commit is contained in:
Rafał Grodziński
2025-06-04 17:24:30 +09:00
parent 36e798ae3f
commit 4feeb0f8af
7 changed files with 118 additions and 10 deletions

View File

@@ -120,7 +120,7 @@ shared_ptr<Token> Lexer::nextToken() {
if (token != nullptr)
return token;
// logical
// comparison
token = match(Token::Kind::NOT_EQUAL, "!=", false);
if (token != nullptr)
return token;