yurloc opened a new issue, #5938:
URL: https://github.com/apache/incubator-kie-drools/issues/5938

   ## Parent issue
   - #5678 
   
   ## Failing tests
   None. Discovered accidentally.
   
   ## Notes
   Add a new test to `org.drools.drl.parser.antlr4.MiscDRLParserTest`. Related 
to #5937. Two options:
   - Develop a [lexer 
rule](https://github.com/antlr/antlr4/blob/master/doc/lexer-rules.md) that 
defines a token for [ISO 8601 
durations](https://en.wikipedia.org/wiki/ISO_8601#Durations) or reuse 
https://github.com/antlr/grammars-v4/tree/master/iso8601 (if 0BSD is compatible 
with ASL 2.0). Use the token in the `attribute` rule in `DRLParser.g4`.
   - Make the `attribute` rule less specialized and use the `chunk` rule for 
the `duration` attribute's value. This is the behavior of the old parser's 
[intOrChunkAttribute](https://github.com/apache/incubator-kie-drools/blob/053d70c8f9145706e771f90e8ce2dafa3899b59b/drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Parser.java#L1955)
 method.
   
   ## Rule code snippet
   ```
   rule R
     duration ("P1DT1M")
   when
   end
   ```
   
   ## Error output
   N/A.


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