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
When parsing enum values the parser has a greedy approach, resulting in an error.
I have an enum
enum Operator {
o EQUAL // Equal
o NOT_EQUAL // Not Equal
o GREATER // Greater
o GREATER_EQUAL // Greater or Equal
o LESS // Less
o LESS_EQUAL // Less or Equal
}
and when using the values on the markdown text I can't use the values GREATER_EQUAL and LESS_EQUAL . All the other values are okay and even this last 2 are ok when using them inside an emit on the logic.
9:46:15 AM - error: Parse error at line 20 column 109
2. "response_time" : "http://www.provider.com/metrics/response-time" - "milliseconds" ("80"). Operator: LESS_EQUAL, tolerance: "15", consequence: "Extra credit at the end of the billing cycle".
^^^^^^^^^^^^^
Expected: ', tolerance: '
&
9:46:02 AM - error: Parse error at line 20 column 112
2. "response_time" : "http://www.provider.com/metrics/response-time" - "milliseconds" ("80"). Operator: GREATER_EQUAL, tolerance: "15", consequence: "Extra credit at the end of the billing cycle".
^^^^^^^^^^^^^
Expected: ', tolerance: '
Expected Behavior
It should parse GREATER_EQUAL and not interpret that is a GREATER and _EQUAL is some additional text that should not be there.
When parsing enum values the parser has a greedy approach, resulting in an error.
I have an enum
and when using the values on the markdown text I can't use the values GREATER_EQUAL and LESS_EQUAL . All the other values are okay and even this last 2 are ok when using them inside an emit on the logic.
Expected Behavior
It should parse GREATER_EQUAL and not interpret that is a GREATER and _EQUAL is some additional text that should not be there.
Steps to Reproduce
files can be seen here: https://filebin.net/sxuo28ictd18n7ws
run
cicero parse
The text was updated successfully, but these errors were encountered: