tkobayas commented on code in PR #5783:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5783#discussion_r1524573827


##########
drools-drl/drools-drl-parser/src/main/antlr4/org/drools/drl/parser/antlr4/DRL6Expressions.g4:
##########
@@ -162,6 +162,76 @@ typeArgument
     |  QUESTION ((extends_key | super_key) type)?
     ;
 
+// matches any drl keywords
+drlKeywords returns [Token token]
+    : DRL_UNIT
+    | DRL_FUNCTION
+    | DRL_GLOBAL
+    | DRL_DECLARE
+    | DRL_RULE
+    | DRL_QUERY
+    | DRL_WHEN
+    | DRL_THEN
+    | DRL_END
+    | DRL_AND
+    | DRL_OR
+    | DRL_EXISTS
+    | DRL_NOT
+    | DRL_IN
+    | DRL_FROM
+    | DRL_MATCHES
+    | DRL_MEMBEROF
+    | DRL_CONTAINS
+    | DRL_EXCLUDES
+    | DRL_SOUNDSLIKE
+    | DRL_STR
+    | DRL_ACCUMULATE
+    | DRL_ACC
+    | DRL_INIT
+    | DRL_ACTION
+    | DRL_REVERSE
+    | DRL_RESULT
+    | DRL_ENTRY_POINT
+    | DRL_EVAL
+    | DRL_SALIENCE
+    | DRL_ENABLED
+    | DRL_NO_LOOP
+    | DRL_AUTO_FOCUS
+    | DRL_LOCK_ON_ACTIVE
+    | DRL_REFRACT
+    | DRL_DIRECT
+    | DRL_AGENDA_GROUP
+    | DRL_ACTIVATION_GROUP
+    | DRL_RULEFLOW_GROUP
+    | DRL_DATE_EFFECTIVE
+    | DRL_DATE_EXPIRES
+    | DRL_DIALECT
+    | DRL_CALENDARS
+    | DRL_TIMER
+    | DRL_DURATION
+    ;
+
+// matches any identifiers including acceptable java keywords (defined in 
JavaParser.g4) and drl keywords
+drlIdentifier returns [Token token]

Review Comment:
   We need to define this rule to aggregate acceptable tokens.



-- 
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]

Reply via email to