Skip to content

Conversation

@aspeddro
Copy link
Collaborator

Close #171
Close #68

repeat($.decorator),
$.expression,
repeat(alias($._let_binding_and, $.let_binding)),
optional(alias($._let_binding_and, $.let_binding)),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no clear idea why it is generating an error (#171).

My hypothesis: As the rule _let_binding_and has a _let_binding rule so it's already recursive.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, yes. I also see no precedence specs for let_binding, _let_binding, _let_binding_and. Maybe that’s what involved too.

Nevertheless, I think the new variant is fine too.

repeat($.decorator),
$.expression,
repeat(alias($._let_binding_and, $.let_binding)),
optional(alias($._let_binding_and, $.let_binding)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, yes. I also see no precedence specs for let_binding, _let_binding, _let_binding_and. Maybe that’s what involved too.

Nevertheless, I think the new variant is fine too.

Copy link
Collaborator

@nkrkv nkrkv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@nkrkv nkrkv merged commit 29c1fd2 into rescript-lang:main Nov 19, 2022
@aspeddro aspeddro deleted the fix-reanalyze branch December 4, 2022 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: consecutive and let bindings Add reanalyze repository to test_wild

2 participants