Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Expression parser improvements #7663
Literals are now supported, e.g.
The ! (NOT) function syntax has been extended to support named functions.
Additional binary and unary operators have been added for advanced configurations:
Added a !toggle unary function whose state toggles on/off when its inner expression is activated.
Added special function named !timer which increases from 0.0 to 1.0 every N seconds.
Added named variables and assignment operator, e.g.
Outputs and Inputs can now be used in the same expression.
Added !while function which re-evaluates the 2nd argument while the 1st argument is > 0.5
Added !if function
Added comma operator which behaves like it does in c++ to string together expressions.
C++-style operator precedence is now followed.