tkobayas commented on code in PR #5793:
URL:
https://github.com/apache/incubator-kie-drools/pull/5793#discussion_r1530068868
##########
drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4:
##########
@@ -512,3 +512,37 @@ drlVariableInitializer
drlArrayInitializer
: LBRACE (drlVariableInitializer (COMMA drlVariableInitializer)* (COMMA)?
)? RBRACE
;
+
+/* extending JavaParser block */
+drlBlock
Review Comment:
@yurloc Ahh, I can't. For example, if I remove `block` in `JavaParser.g4`,
other rules in `JavaParser.g4` which depend on `block` fail to process. Even if
I use the same name `block` in `DRLParser.g4`, the result is the same because
`JavaParser.g4`doesn't look at `DRLParser.g4`.
A possible approach would be to fully copy the content of `JavaParser.g4`
into `DRLParser.g4` and modify rules in the single file. It would be worth
trying, but it would be another separate issue, WDYT?
--
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]