You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2026/08/16 22:52:54 UTC

(incubator-kie-tools) branch main updated: [incubator-kie-6891] DRL10 ANTLR4 parser does not support lambdas and methods in functions (#3707)

This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 96ef6fe2ead [incubator-kie-6891] DRL10 ANTLR4 parser does not support lambdas and methods in functions (#3707)
96ef6fe2ead is described below

commit 96ef6fe2ead2ad8805dfff8b24fee1e1c3532049
Author: Toshiya Kobayashi <to...@gmail.com>
AuthorDate: Mon Aug 17 07:52:50 2026 +0900

    [incubator-kie-6891] DRL10 ANTLR4 parser does not support lambdas and methods in functions (#3707)
---
 .../main/antlr4/org/drools/drl/parser/antlr4/DRL10Parser.g4   | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/packages/drools-lsp/drools-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL10Parser.g4 b/packages/drools-lsp/drools-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL10Parser.g4
index 275f88cc2d6..5a63e951ba1 100644
--- a/packages/drools-lsp/drools-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL10Parser.g4
+++ b/packages/drools-lsp/drools-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL10Parser.g4
@@ -270,11 +270,16 @@ backReferenceExpression : (DOT DOT DIV)+  drlExpression ;
 
 /* extending JavaParser methodCall in order to accept drl keywords as method name */
 drlMethodCall
-    : drlIdentifier LPAREN expressionList? RPAREN
-    | THIS LPAREN expressionList? RPAREN
-    | SUPER LPAREN expressionList? RPAREN
+    : drlIdentifier LPAREN drlExpressionList? RPAREN
+    | THIS LPAREN drlExpressionList? RPAREN
+    | SUPER LPAREN drlExpressionList? RPAREN
     ;
 
+drlExpressionList
+    : drlExpression (COMMA drlExpression)*
+    ;
+
+
 temporalOperator : DRL_NOT? bop=(DRL_AFTER | DRL_BEFORE | DRL_COINCIDES | DRL_DURING | DRL_INCLUDES | DRL_FINISHES | DRL_FINISHED_BY | DRL_MEETS | DRL_MET_BY | DRL_OVERLAPS | DRL_OVERLAPPED_BY | DRL_STARTS | DRL_STARTED_BY) timeAmount? ;
 
 timeAmount : LBRACK (TIME_INTERVAL | DECIMAL_LITERAL | MUL | SUB MUL) (COMMA (TIME_INTERVAL | DECIMAL_LITERAL | MUL | SUB MUL))* RBRACK ;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org