04-08-2021, 03:58 PM
(04-08-2021, 11:05 AM)bbjimmy Wrote:Yes, but I'm going to be using the expression parser from the Yab sources instead. This will allow us to maintain more compatibility from the BASIC side of things. As such, the orders of operations will be split into multiple simple expressions and use temporary variables to substitute for orders of operations.(04-07-2021, 12:07 PM)SamuraiCrow Wrote: Update: I've run into a corner-case where if a variable is used twice in the same expression, it will get double-free conditioned. This will take some thought.Can't one use a variable twice in an expression in c/c++?
FIxed: The problem was that I added a mechanism in which temporary variables would be recycled but had to fix it so that non-temporary ones would not be deallocated until they go out of scope.
Now I'm working on producing functions. This and structured programming involve a lot of reinvented wheels because the non-structured on..goto and on..gosub routines have no equivalents in C++ structured programming.