finished expr function.

This commit is contained in:
Brad Arant 2024-11-18 13:08:28 -08:00
parent 78001212f8
commit e249588a19

View File

@ -54,10 +54,10 @@ namespace jet {
throw coreutils::Exception("Expecting ) at end of LEFT expression.");
} else if(in.ifNextIgnoreCase("EXPR")) {
if(!in.ifNext("("))
throw coreutils::Exception("Expecting ( for LEFT parameters.");
throw coreutils::Exception("Expecting ( for EXPR parameters.");
Operand parm1(in, global, lvariables);
if(in.ifNext(")")) {
Operand op(in, global, lvariables);
Operand op(parm1.string, global, lvariables);
string = op.string;
isNumber = op.isNumber;
boolean = op.boolean;