How many sequences may be open at once, by default.
One frame per bracket pair and per block, so this is what keeps the stack
finite on input that nests without end. Two numbers decide it, and they are
not close together:
- Real source nests nothing like this deep. The 610 Rhombus modules in
the corpus come nowhere near it.
- The smallest stack this library runs on does not go much further. On
the wasm backend, nested blocks overflow somewhere between 90 and 100
levels -- so the limit is not "20x what anyone writes", which would be
past the point where the check could still be reached. It is a little
under half of the smallest ceiling measured.
A consumer that knows its own stack can raise it: parse takes max_depth.
Anything that nests deeper than a person would write is data rather than
source, and a refusal it can catch beats a signal it cannot.