-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exprtk-0.0.3 in mvme #15
Comments
@flueke Can you please link the scripts. or paste them here. If all that is missing are semi-colons in end user scripts, wouldn't it be easier and a more robust solution to fix the scripts by adding the semi-colons?
Unfortunately there's no option in the parser to revert to the old behaviour, as the previous behaviour was buggy/incorrect. Explicitly adding semi-colons in expressions correctly terminates sub-statements in the expression. Either way do let me know how you'd like to proceed. |
@ArashPartow Thank you for looking into this. These are the scripts from my exprtk_simple_example_25.cpp:
It's only about the semicolons after the closing braces of the for loops. In all other places Direct link to the code: exprtk_simple_example_25.cpp |
In the current version of ExprTk when This is more of a tightening up of the statement termination requirements, and is also intended to reduce any surprises if expressions are recompiled with the So based on the above example, I'd say |
I had to revert the merge because it broke some existing user scripts in mvme. It's related to
expression/block contexts and the use/lack of semicolons.
I've created branches for 0.0.2 and 0.0.3 each containing a new
exprtk_simple_example_25.cpp
program:https://github.com/flueke/exprtk/tree/SemicolonForContext-0.0.2
https://github.com/flueke/exprtk/tree/SemicolonForContext-0.0.3
Do I have to set a new option to get the old behavior back with exprtk-0.0.3?
Best,
Florian
Originally posted by @flueke in #13 (comment)
The text was updated successfully, but these errors were encountered: