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

tkobayas pushed a commit to branch dev-new-parser
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git


The following commit(s) were added to refs/heads/dev-new-parser by this push:
     new cc9ab5bb84 Allow empty queries (#5892)
cc9ab5bb84 is described below

commit cc9ab5bb844ced81b5431d1bf0b3b9cb2994f2af
Author: Jiří Locker <[email protected]>
AuthorDate: Tue May 7 04:42:24 2024 +0200

    Allow empty queries (#5892)
---
 .../src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4
 
b/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4
index f0eba169bf..6c37402f10 100644
--- 
a/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4
+++ 
b/drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRLParser.g4
@@ -101,7 +101,7 @@ parameter : type? drlIdentifier ; // type is optional. 
Removed (LEFT_SQUARE RIGH
 
 lhs : DRL_WHEN lhsExpression* ;
 
-queryLhs : lhsExpression+ ;
+queryLhs : lhsExpression* ;
 
 lhsExpression : LPAREN lhsExpression RPAREN                             
#lhsExpressionEnclosed
               | lhsUnary                                                
#lhsUnarySingle


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to