maxDepth method

Parser<T> maxDepth(
  1. int depth
)

Prevents recursion past a certain depth, preventing stack overflow errors.

Implementation

Parser<T> maxDepth(int depth) => new _MaxDepth<T>(this, depth);