-
Notifications
You must be signed in to change notification settings - Fork 34
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
Bug with zero or more rule #81
Comments
An easy, but possible problematic way to solve this is recursively checking expressions until we find single I will look into that |
Unfortunately here we need a more general indicator of a failure
|
stmts returns an empty array not None. And that is interpreted as False. None is a good marker. |
Yes, initially i was wrong about it |
My attempt to solve the problem |
Gram file
Input
Result
The problem in the generated parse rule for the
block
stmtCode
(stmts := self.stmts())
shoud be(stmts := self.stmts()) is not None
because an empty array is interpreted as false.The text was updated successfully, but these errors were encountered: