Infinite Hang when Parsing (Probably own fault) #142
Cookie04DE
started this conversation in
General
Replies: 2 comments 2 replies
-
Unfortunately you have a classic case of left recursion. The problem lies in
The solution is to refactor your grammar to remove this recursion. Something like the following:
All the best. PS. Your |
Beta Was this translation helpful? Give feedback.
1 reply
-
It will likely be the same problem. Have you looked at the rest of your grammar? I've just added a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to parse a custom file format. This is my code:
This code hangs indefinitely (as far as I can tell) and consumes a lot of memory.
The code is also incomplete since I don't know how to parse Ints and QuotedStrings, perhaps that's the reason it hangs.
Could you help?
Beta Was this translation helpful? Give feedback.
All reactions