tkobayas commented on code in PR #5793:
URL:
https://github.com/apache/incubator-kie-drools/pull/5793#discussion_r1530042517
##########
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 That's a great point. Let me try...
> Or is this impossible because we still need to parse plain old Java code
in the RHS?
It's okay. RHS is just retrieved as text by the parser. For RHS execution,
non-exec-model uses `JavaParser.java` in `drools-compiler`, exec-model uses the
java code directly with some modification.
For DRL editor, we may need another parser rules specific to RHS, but it
would be a later story.
--
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]