-
-
Notifications
You must be signed in to change notification settings - Fork 0
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] closure() function can cause Maximum call stack size exceeded
#6
Comments
matthew-dean
changed the title
[Bug] closure() function can cause an infinite loop
[Bug] closure() function can cause Aug 26, 2023
Maximum call stack size exceeded
Oh okay, apparently it was this rule: $.RULE('expression', () => {
$.SUBRULE($.expressionValue, { LABEL: 'L' })
$.MANY(() => {
$.OR([
{
ALT: () => {
$.OR2([
{ ALT: () => $.CONSUME(T.Plus) },
{ ALT: () => $.CONSUME(T.Minus) },
{ ALT: () => $.CONSUME(T.Star) },
{ ALT: () => $.CONSUME(T.Divide) }
])
$.SUBRULE2($.expressionValue, { LABEL: 'R' })
}
},
{
GATE: $.noSep,
ALT: () => {
/** This will be interpreted by Less as a complete expression */
$.CONSUME(T.Signed)
}
},
// The existence of this causes an infinite loop in this package.
{ ALT: EMPTY_ALT() }
])
})
}) |
Have you disabled the validator for your parser? A |
Nope, I had't disabled the validator. |
I see. I'm on vacation until next week, but I'll look into these issues and see what I can do once I'm back. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting a
Maximum call stack size exceeded
in theclosure()
function. I'm attempting to investigate, and no doubt there's a problem in my grammar; but I thought it would be worth reporting that there is apparently a grammar problem that can trigger this.The text was updated successfully, but these errors were encountered: