.g4 grammars were merged to https://github.com/apache/incubator-kie-drools main branch. It will be included in 10.1.0 release (not a default parser).
At the moment, we can copy the .g4 grammar files to our drools-parser module, and probably remove some tests because they are already tested on incubator-kie-drools.
When 10.1.0 will be released, we may be able to simply add a dependency drools-drl-parser to our drools-completion module. Note: it may worth consider if it's better to have the .g4 grammar files even after 10.1.0, so that we can customize further e.g. RHS syntax is not required in drools-drl-parser, so not implemented, but Editor would want to have more detailed support like modify ($p) {} syntax.
.g4grammars were merged to https://github.com/apache/incubator-kie-drools main branch. It will be included in10.1.0release (not a default parser).At the moment, we can copy the
.g4grammar files to ourdrools-parsermodule, and probably remove some tests because they are already tested on incubator-kie-drools.When
10.1.0will be released, we may be able to simply add a dependencydrools-drl-parserto ourdrools-completionmodule. Note: it may worth consider if it's better to have the.g4grammar files even after10.1.0, so that we can customize further e.g. RHS syntax is not required indrools-drl-parser, so not implemented, but Editor would want to have more detailed support likemodify ($p) {}syntax.