tkobayas commented on PR #5899: URL: https://github.com/apache/incubator-kie-drools/pull/5899#issuecomment-2097821327
Indeed we use `||` in `conditionalOrExpression` (for simple OR connection) and `orRestriction` (for a half constraint like `a == 10 || == 20`). https://github.com/antlr/antlr4/blob/master/doc/predicates.md#finding-visible-predicates ``` The prediction process also can't see through token references. Token references have the side effect of advancing the input one symbol. A predicate that tested the current input symbol would find itself out of sync if the parser shifted it over the token reference. ``` So probably, we should not expect the semantic predicate `{(helper.isPluggableEvaluator(false))}?` to resolve the ambiguity in Antlr4. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
