Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new-parser] Parser should expect the final EOF, otherwise it can stop prematurely and report no error #5929

Closed
yurloc opened this issue May 12, 2024 · 1 comment

Comments

@yurloc
Copy link
Contributor

yurloc commented May 12, 2024

Parent issue

Failing tests

  • org.drools.mvel.integrationtests.ParserTest#testErrorsParser

Notes

For example, if there is a typo in the import keyword (or any other keyword that starts a DRL statement, such as rule or global), the parser cannot match a drlStatement and it bails out gracefully, ignoring the rest of the input and reporting no error.

Rule code snippet

package org.drools.compiler.test;

impot org.drools.compiler.test.model.Cheese;

rule "eval rule test" ...

Error output

No error.

@yurloc
Copy link
Contributor Author

yurloc commented May 12, 2024

/take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant