added EQ and NEQ

This commit is contained in:
Karma Riuk
2025-07-01 18:01:45 +02:00
parent 7973f7522c
commit aee7a741b1
3 changed files with 19 additions and 0 deletions

View File

@@ -56,6 +56,9 @@ if (5 < 10) {\
} else {\
return false;\
}\
\
10 == 10;\
10 != 9;\
");
lexer::lexer l{ss};
@@ -137,6 +140,16 @@ if (5 < 10) {\
{token::type::SEMICOLON, ";"},
{token::type::RBRACE, "}"},
{token::type::INT, "10"},
{token::type::EQ, "=="},
{token::type::INT, "10"},
{token::type::SEMICOLON, ";"},
{token::type::INT, "10"},
{token::type::NEQ, "!="},
{token::type::INT, "9"},
{token::type::SEMICOLON, ";"},
// clang-format on
};