-
Notifications
You must be signed in to change notification settings - Fork 188
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
QuickLib.Expression have bug and Some advice #60
Comments
Sorry, as you can see in readme, TExpressionParser was created to validate object properties. You need to pass and object as first parameter, and an expression as second param, where each condition can be a property or a property of a property of that object:
But, if you pass a integer as first param, TExpression replaces first part of every condition with that integer.
However, I updated Expressions to support Validate without first param:
|
Thanks for your guidance. |
Yes, of course. |
Attached is the file, please receive it. |
First, it was found that priority processing was not supported, causing some partial errors:
Assert(true, TExpressionParser.Validate(5, '(0.3 < 8) or (5 < 4) and (2 = 1)')); //false is err
Assert(true, TExpressionParser.Validate(5, '(8 > 3) or (5 > 4) and (2 = 1)')); //false is err
Some statements cannot be executed
// PRN(TExpressionParser.Validate(5,'8<1'));
// PRN(TExpressionParser.Validate(5,'8 < 1 or 5 > 4 '));
Unable to support addition, subtraction, multiplication and division. Hope to support common functions as well as custom functions
The text was updated successfully, but these errors were encountered: