-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix(parse-dsl): fix issue with infinite loops triggered when parsing some models #76
Conversation
2b6ec8a
to
d27bf89
Compare
d27bf89
to
f13f60b
Compare
Able to reproduce a case that takes a long time to parse
d66d838
to
c74b34a
Compare
c74b34a
to
c9b71fe
Compare
c9b71fe
to
b57ea16
Compare
@adriantam this is ready for review |
Only question is whether we want to allow comment before "relations" - and we can defer this to later PR. Other than that, LGTM. |
Comments before relations won't be allowed, but there should be one before define - however it is also triggering the infinite loop, so removed it for now. |
Description
We had some issues in our grammar causing infinite loops when trying to parse, especially when extraneous spaces or newlines were found.
We still have some issues with parsing comments, but it has been limited.
References
Closes #77
Review Checklist
main