You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've written a grammar using Hime that I'm using to parse some fairly large Object Pascal source files. Unfortunately I was getting a list index out of bounds exception on some of the more complex files; downloading the source, the problem was that I was overflowing the parser stack somehow.
Increasing the Hime.Redist.Parsers.BaseLRParser.MAX_STACK_SIZE constant and recompiling has resolved the problem - but it'd be nice if a future release could incorporate a fix, either through a larger fixed stack or a resizable stack that grows automatically?
(I've also had an issue that looks like it may require context sensitive parsing - but I see you're already considering that. Thank you for all your work on Hime - it's proven very useful!)
The text was updated successfully, but these errors were encountered:
Original report by me.
Hi,
I've written a grammar using Hime that I'm using to parse some fairly large Object Pascal source files. Unfortunately I was getting a list index out of bounds exception on some of the more complex files; downloading the source, the problem was that I was overflowing the parser stack somehow.
Increasing the Hime.Redist.Parsers.BaseLRParser.MAX_STACK_SIZE constant and recompiling has resolved the problem - but it'd be nice if a future release could incorporate a fix, either through a larger fixed stack or a resizable stack that grows automatically?
(I've also had an issue that looks like it may require context sensitive parsing - but I see you're already considering that. Thank you for all your work on Hime - it's proven very useful!)
The text was updated successfully, but these errors were encountered: