mirror of
https://github.com/huderlem/porymap.git
synced 2026-11-18 17:17:19 -06:00
Process mod in defines
This commit is contained in:
@@ -130,6 +130,7 @@ QMap<QString, int> Token::precedenceMap = QMap<QString, int>(
|
||||
{
|
||||
{"*", 3},
|
||||
{"/", 3},
|
||||
{"%", 3},
|
||||
{"+", 4},
|
||||
{"-", 4},
|
||||
{"<<", 5},
|
||||
@@ -194,6 +195,8 @@ int ParseUtil::evaluatePostfix(const QList<Token> &postfix) {
|
||||
result = op1 * op2;
|
||||
} else if (token.value == "/") {
|
||||
result = op1 / op2;
|
||||
} else if (token.value == "%") {
|
||||
result = op1 % op2;
|
||||
} else if (token.value == "+") {
|
||||
result = op1 + op2;
|
||||
} else if (token.value == "-") {
|
||||
|
||||
Reference in New Issue
Block a user