kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.57k stars 232 forks source link

Very long string issue. #502

Open josecvega opened 4 years ago

josecvega commented 4 years ago

I would like to start by sayingI've been using this library for almost a year to parsed our made up language and it's worked without any issues.

Just recently we've maintained our existing grammar but we support strings up to 128,000 characters and after some initial testing we are experiencing Javascript out of memory issues.

My issue is more of a question. Has anyone had similar issues or could it be something related to the grammar?

wouterbeek commented 1 year ago

Yes, I saw this as well. I have had OOM issues with ~30K character strings.