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
A weired issue. When I tried the official example (both in document and README link), and changed the field name id to environment_id, I encountered ParseException of Undefined operator '.'.
Undefined operator '.'
ParseException(super=BaseException(startPosition=6, endPosition=6, tokenString=., message=Undefined operator '.'))
at app//com.ezylang.evalex.parser.Tokenizer.parseOperator(Tokenizer.java:253)
at app//com.ezylang.evalex.parser.Tokenizer.getNextToken(Tokenizer.java:165)
at app//com.ezylang.evalex.parser.Tokenizer.parse(Tokenizer.java:84)
at app//com.ezylang.evalex.Expression.getAbstractSyntaxTree(Expression.java:235)
at app//com.ezylang.evalex.Expression.evaluate(Expression.java:85)
...
So far I found that any field name that follows the dot '.' and starts with 'e' will make this error, with a few exceptions:
failed examples: order.e, context.e, context.environment_id, var.e, variabl.e, variablew.e, etc.
exceptionally passed examples: variable as the structure name will not issue this exception, like variable.e, variable.environment_id, etc.
normal passed examples: from order.a to order.z except order.e; from variable.a to variable.z
The text was updated successfully, but these errors were encountered:
atomiechen
changed the title
Bug: Undefined operator '.' ParseException when letter 'e' is after dot '.'
BUG: Undefined operator '.' ParseException when letter 'e' is after dot '.'
Mar 15, 2023
A weired issue. When I tried the official example (both in document and README link), and changed the field name
id
toenvironment_id
, I encountered ParseException of Undefined operator '.'.Environment:
implementation 'com.ezylang:EvalEx:3.0.2'
Code:
Result:
So far I found that any field name that follows the dot '.' and starts with 'e' will make this error, with a few exceptions:
order.e
,context.e
,context.environment_id
,var.e
,variabl.e
,variablew.e
, etc.variable
as the structure name will not issue this exception, likevariable.e
,variable.environment_id
, etc.order.a
toorder.z
exceptorder.e
; fromvariable.a
tovariable.z
The text was updated successfully, but these errors were encountered: