ParserRecursionLimit adjusts the AST depth the parser will tolerate. Defaults defined in the parser package.
(limit int)
| 1174 | // ParserRecursionLimit adjusts the AST depth the parser will tolerate. |
| 1175 | // Defaults defined in the parser package. |
| 1176 | func ParserRecursionLimit(limit int) EnvOption { |
| 1177 | return setLimit(limitParseRecursionDepth, limit) |
| 1178 | } |
| 1179 | |
| 1180 | // ParserErrorRecoveryLimit sets the number of attemtps the parser will take |
| 1181 | // to recover after encountering an error. |