Fixed * and / operators to prioritize over + and -.

This commit is contained in:
Brad Arant committed 2025-11-25 13:16:26 -08:00
1 parent 61216a2296
commit a91d78f524
4 files changed
+36 -6

No files matched your search

+6 -1
View File
@@ -10,8 +10,11 @@ namespace jet {
class Operand {
public:
Operand(coreutils::ZString &in, Tag &tag);
Operand(coreutils::ZString &in, Tag &tag, bool stop = false);
coreutils::ZString ∈
Tag &tag;
bool isNumber;
///
@@ -23,6 +26,8 @@ namespace jet {
coreutils::MString string = "";
double doubleValue;
int parseOperator();
};