You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this expression does not parse correctly:
((double) 1)
This is a problem if we want to cast an object and then access a member of that object.
For example accessing a property that is IDictionary<string, object>:
((DateTime)Values["key"]).Year
Will throw an exception.
Here is the parsing error I get:
DynamicExpresso.ParseException: ')' or operator expected (at index 12).
at DynamicExpresso.ExpressionParser.ValidateToken(TokenId t, String errorMessage)
at DynamicExpresso.ExpressionParser.ParseParenExpression()
at DynamicExpresso.ExpressionParser.ParsePrimaryStart()
at DynamicExpresso.ExpressionParser.ParsePrimary()
at DynamicExpresso.ExpressionParser.ParseUnary()
at DynamicExpresso.ExpressionParser.ParseMultiplicative()
at DynamicExpresso.ExpressionParser.ParseAdditive()
at DynamicExpresso.ExpressionParser.ParseTypeTesting()
at DynamicExpresso.ExpressionParser.ParseComparison()
at DynamicExpresso.ExpressionParser.ParseLogicalAnd()
at DynamicExpresso.ExpressionParser.ParseLogicalOr()
at DynamicExpresso.ExpressionParser.ParseConditional()
at DynamicExpresso.ExpressionParser.ParseExpressionSegment()
at DynamicExpresso.ExpressionParser.ParseExpressionSegment(Type returnType)
at DynamicExpresso.ExpressionParser.Parse()
at DynamicExpresso.Interpreter.ParseExpression(String expressionText, Type
The text was updated successfully, but these errors were encountered:
Dynamic Expresso Version 0.11.0.0
The following expression parses correctly:
(double) 1
However, this expression does not parse correctly:
((double) 1)
This is a problem if we want to cast an object and then access a member of that object.
For example accessing a property that is IDictionary<string, object>:
((DateTime)Values["key"]).Year
Will throw an exception.
Here is the parsing error I get:
DynamicExpresso.ParseException: ')' or operator expected (at index 12).
at DynamicExpresso.ExpressionParser.ValidateToken(TokenId t, String errorMessage)
at DynamicExpresso.ExpressionParser.ParseParenExpression()
at DynamicExpresso.ExpressionParser.ParsePrimaryStart()
at DynamicExpresso.ExpressionParser.ParsePrimary()
at DynamicExpresso.ExpressionParser.ParseUnary()
at DynamicExpresso.ExpressionParser.ParseMultiplicative()
at DynamicExpresso.ExpressionParser.ParseAdditive()
at DynamicExpresso.ExpressionParser.ParseTypeTesting()
at DynamicExpresso.ExpressionParser.ParseComparison()
at DynamicExpresso.ExpressionParser.ParseLogicalAnd()
at DynamicExpresso.ExpressionParser.ParseLogicalOr()
at DynamicExpresso.ExpressionParser.ParseConditional()
at DynamicExpresso.ExpressionParser.ParseExpressionSegment()
at DynamicExpresso.ExpressionParser.ParseExpressionSegment(Type returnType)
at DynamicExpresso.ExpressionParser.Parse()
at DynamicExpresso.Interpreter.ParseExpression(String expressionText, Type
The text was updated successfully, but these errors were encountered: