-
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
[new-parser] Improvement candidates #5972
Comments
|
This was referenced May 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue aggregates improvement candidates. It may be something wrong or too tolerate in the old Antlr3 parser. Also it may be to drop features which would improve the maintainability. They will need to be discussed in [email protected] ML.
In the old parser,
duration
attribute accepts any chunk text and expect validation at the compiler phase. We may define more strict parser syntax for theduration
attribute.Define expected value format where we use
chunk
, so we can reduce ambiguity (e.g. unexpected greediness)Drop Half constraint
name == “Mark” || == “Mario”, age > 10 && < 20
Drop Named consequence
if ( $a.price > Cheese.BASE_PRICE ) break[t1] else break[t2]
Drop Annotation inside LHS (except @watch)
Drop LanguageLevelOption
Disallow Java keywords in DRL
package some.other.package
. It will fail at the compile stage anyway. It’s useless, but at the moment, we try to keep backward compatibility. Discussion is [new-parser] Allow package to be used as an identifier #5819||
&&
as alternatives to infix or/and||
and&&
should be allowed as alternatives to infixor
andand
#5936Additional syntax: ‘end’ has to end with a new line (may have trailing white-spaces / comment)
rule R1 when then end rule R2 when then end
)The text was updated successfully, but these errors were encountered: