Refers to another parser indirectly. This allows circular compile-time dependency between parsers.
public static IParser<T> Ref<T>(Func<IParser<T>> parserGenerator)
Avoid left recursion, which will result in a stack overflow at runtime.
Refers to another parser indirectly. This allows circular compile-time dependency between parsers.
public static IParser<T> Ref<T>(Func<IParser<T>> parserGenerator, int maxDepth)
Fails if the total depth of all Ref
parsers exceeds the specified maximum. Avoid left recursion, which will result in a stack overflow at runtime.
Refers to another parser indirectly. This allows circular compile-time dependency between parsers.
public static IParser<T> Ref<T>(Func<IParser<T>> parserGenerator, int maxDepth,
string maxDepthFailureName)
Fails with the specified named failure if the total depth of all Ref
parsers exceeds the specified maximum. Avoid left recursion, which will result in a stack overflow at runtime.