You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "tkobayas (via GitHub)" <gi...@apache.org> on 2024/02/08 07:03:58 UTC

[I] Experiment: New DRL parser : end lexer [incubator-kie-drools]

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

   Parent issue: https://github.com/apache/incubator-kie-drools/issues/5678
   
   For example, `AlphaNodeTest.testAlphaDelete`, `AlphaNodeTest.testAlphaModify` and some more tests fail with parser errors like
   `text=missing DRL_RHS_END at '<EOF>'`, `text=Rule Compilation error end cannot be resolved to a type Syntax error on token "R2", ; expected`
   
   those rules have RHS like
   
   ```
   then
     modify($p) { setName("Mark")}end
   ```
   ```
   then
     delete($p);end
   ```
   
   Here, `end` doesn't preceded by a white-space nor a line break. The new parser cannot handle such an `end`.
   
   This is seemingly an invalid syntax though...
   
   The current DRL6Parser can handle such an `end` in `getConsequenceCode`.
   
   https://github.com/apache/incubator-kie-drools/blob/8.44.0.Final/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Parser.java#L4622-L4654


-- 
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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Experiment: New DRL parser : Test failure : RHS end without preceding white-space [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas closed issue #5679: Experiment: New DRL parser : Test failure : RHS end without preceding white-space
URL: https://github.com/apache/incubator-kie-drools/issues/5679


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Experiment: New DRL parser : Test failure : RHS end without preceding white-space [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas commented on issue #5679:
URL: https://github.com/apache/incubator-kie-drools/issues/5679#issuecomment-1965895276

   Fixed by https://github.com/apache/incubator-kie-drools/pull/5698


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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