diff options
author | Steve Bennett <steveb@workware.net.au> | 2017-05-12 13:33:44 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2017-05-23 14:36:56 +1000 |
commit | bd5139c89e714bb7e10a0da55d9a10f51e93516c (patch) | |
tree | a1fb42986a3abc588e05f0b7eea4361c723f779c /jim.h | |
parent | 7b2250a7e60968b0c3716a7caa780e6ca0a2ce9b (diff) | |
download | jimtcl-bd5139c89e714bb7e10a0da55d9a10f51e93516c.zip jimtcl-bd5139c89e714bb7e10a0da55d9a10f51e93516c.tar.gz jimtcl-bd5139c89e714bb7e10a0da55d9a10f51e93516c.tar.bz2 |
expr: Replace expression engine
Rework the expression engine to use recursive descent evaluation rather than
a shunting yard algorithm. Among other things, it is easier to make lazy operators
and the ternary operator work correctly.
In particular, the following expression no longer crashes: $(99?9,99?9:*9:999)?9)
And the code is now smaller.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.h')
-rw-r--r-- | jim.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -816,7 +816,7 @@ JIM_EXPORT int Jim_GetReturnCode (Jim_Interp *interp, Jim_Obj *objPtr, /* expression object */ JIM_EXPORT int Jim_EvalExpression (Jim_Interp *interp, - Jim_Obj *exprObjPtr, Jim_Obj **exprResultPtrPtr); + Jim_Obj *exprObjPtr); JIM_EXPORT int Jim_GetBoolFromExpr (Jim_Interp *interp, Jim_Obj *exprObjPtr, int *boolPtr); |