Expressions
Created by: Lartu
LDPL should really support expressions. It's very cumbersome to have to use
MULTIPLY someVar BY someConstant IN temp_var
ADD initialValue TO temp_var in TEMP_var
to do initialValue + someVar * someConstant
. Given that LDPL compiles to C++, adding expressions to the language should be fairly easy. I'm not saying that IF
statements or WHILE
statements should support them (it would be nice, though), I'm saying that there should be some statement like
IN var SOLVE EXPRESSION initialValue + someVar * someConstant