ohmjs / ohm

A library and language for building parsers, interpreters, compilers, etc.
MIT License
5.01k stars 217 forks source link

No indication of stack size exceeded #476

Open guitarvydas opened 7 months ago

guitarvydas commented 7 months ago

I've probably created a test case that blows out the browser stack, using Ohm-editor.

The red error indicator lights up on the left side of the test case, but, there is no other indication of where the problem is.

I think that the grammar is OK, but that the test case is too large, but, I don't know for sure. Ideally, this should give an error message that looks different from all of the rest of the error messages. I can't tell if this is a test-case size issue or if the grammar is wrong.

I hope that this is a useful edge case for you...

replication:

snapshot of WIP - see README.md for how to replicate (ignore rest of README.md) https://github.com/guitarvydas/scm2js0d/tree/stackblowout (git checkout stackblowout)