Support the remainder operator

This commit is contained in:
2025-01-25 19:50:36 +01:00
parent 005e9dcc52
commit bf017ceba3
6 changed files with 172 additions and 217 deletions

View File

@@ -40,6 +40,9 @@ then {
else {
return yy::parser::make_ELSE(this->location);
}
elsif {
return yy::parser::make_ELSIF(this->location);
}
while {
return yy::parser::make_WHILE(this->location);
}
@@ -237,6 +240,9 @@ return {
\/ {
return yy::parser::make_DIVISION(this->location);
}
% {
return yy::parser::make_REMAINDER(this->location);
}
:= {
return yy::parser::make_ASSIGNMENT(this->location);
}