-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Experiment: New DRL parser #5678
Comments
Each issue would be listed in this issue so that this issue (5678) is the parent issue. |
Child issue: |
Child issue: |
Child issue: |
As of 2024-07-11, unit tests are all green. Remaining child issues are low priority, so they can be handled after merging to main. The next step is to create a PR to merge this branch to main branch. Notes:
|
@tkobayas Hi is there any timeline when we can expect 10.0 with antlr4-runtime updated will be released ? |
@anand188 There is no timeline forecast yet. I hope 10.0 (without new parser) release will happen in 1 or 2 months, but not very sure. New parser will be included in the next minor version (probably 10.1). |
@tkobayas is that fair statement we can expect 10.1 before December, is this something we can wait for ? |
@anand188 Sorry, we cannot provide a timeline forecast at the moment. Btw, I'm interested in why you wait for the antlr4 based parser. Could you let me know? It's implementation details and doesn't directly affect users. |
Hi, I'm planning to write a drl formatter/prettier, since there isn't an official one, nor any 3rd-party one. (If there is, plz let me know so that I can just use it.) |
Hi @seyoatda , It's great to hear that you are willing to develop a drl formatter/prettier. I haven't heard of a drl formatter/prettier. https://github.com/kiegroup/drools-lsp is aiming at a DRL editor, but the development is currently suspended until the new parser will be merged. Also it doesn't include a formatter/prettier feature yet.
The new parser is not yet merged, but you can use the files in my branch.
Cheers, |
The new parser has been merged into the main branch (not in Remaining lower priority issues are aggregated in this Github issue: #5988 |
Issue Description:
Migrate a new DRL parser based on antlr 4, because the current DRL parser (based on antlr 3) is hard-coded in the generated Java codes that make it hard to maintain.
Acceptance Criteria:
dev-new-parser
.Add DescrDumperTest and fix the expression parser grammar kiegroup/drools-lsp#48 (comment)
Out of Scope:
main
is out of scope of this issue. When it's ready, we will file a new issue for thatmain
,drools-lsp
will remove itsdrools-parser
and refer the new parserThe text was updated successfully, but these errors were encountered: