drlExpression and drlPrimary in DRLParser.g4 are extended rules from JavaParser.g4.
However, constraint related rules should respect DRL6Expressions.g4 so that we can avoid a situation like "This is possible with DRL6Expressions, but not possible with DRLParser". It would also be a good way to find additional unit tests.
Parent issue
5678
Issue
https://github.com/apache/incubator-kie-drools/pull/5806#discussion_r1540800031
drlExpression
anddrlPrimary
inDRLParser.g4
are extended rules fromJavaParser.g4
.However, constraint related rules should respect
DRL6Expressions.g4
so that we can avoid a situation like "This is possible with DRL6Expressions, but not possible with DRLParser". It would also be a good way to find additional unit tests.