created INTEGER function on operand.

This commit is contained in:
Brad Arant committed 2025-02-04 09:28:28 -08:00
1 parent ce6b163d5d
commit 10db0e9c70
3 files changed
+12 -4

No files matched your search

+7 -1
View File
@@ -94,7 +94,13 @@ namespace jet {
} else if(in.ifNextIgnoreCase("CONCAT")) {
} else if(in.ifNextIgnoreCase("INTEGER")) {
if(!in.ifNext("("))
throw coreutils::Exception("Expecting ( for INTEGER parameters.");
Operand parm1(in, tag);
if(in.ifNext(")")) {
string = parm1.string.asInteger();
} else
throw coreutils::Exception("Expecting ) at end of INTEGER expression.");
} else if(in.ifNextIgnoreCase("ROUND")) {
} else if(in.ifNextIgnoreCase("RANDOM")) {