fix the equalities

This commit is contained in:
Maxwell 2025-04-25 11:13:42 +10:00
parent 8957251808
commit e9f6282446
3 changed files with 3 additions and 1 deletions

BIN
mx

Binary file not shown.

View File

@ -122,6 +122,7 @@ void Parser::processLines() {
else if (ct == "-=") token.keyword = keywords::SUBTRACTFROM;
else if (ct == "*=") token.keyword = keywords::MULTIPLYTO;
else if (ct == "/=") token.keyword = keywords::DIVIDEFROM;
else if (ct == "==") token.keyword = keywords::EQUAL;
else {
token.keyword = keywords::VALUE;
// Convert the value based on its type

View File

@ -11,4 +11,5 @@ print myString;
myString = "dongus";
print myString;
print 5 == 5;
print 3.14 == 3.13;
print 843 == 122;
print "dingus" == "dongus";