ParserRecursionLimit adjusts the AST depth the parser will tolerate. Defaults defined in the parser package.
(limit int)
| 997 | // ParserRecursionLimit adjusts the AST depth the parser will tolerate. |
| 998 | // Defaults defined in the parser package. |
| 999 | func ParserRecursionLimit(limit int) EnvOption { |
| 1000 | return setLimit(limitParseRecursionDepth, limit) |
| 1001 | } |
| 1002 | |
| 1003 | // ParserErrorRecoveryLimit sets the number of attemtps the parser will take |
| 1004 | // to recover after encountering an error. |