Succeeds with a successful parser, if any.
public static IParser<T> Or<T>(IEnumerable<IParser<T>> parsers)
The first successful parser that advances the text position is returned. Otherwise, the first successful parser that does not advance the text position is returned. Otherwise, the failure that advanced the text position farthest is returned.
Succeeds with a successful parser, if any.
public static IParser<T> Or<T>(params IParser<T>[] parsers)
The first successful parser that advances the text position is returned. Otherwise, the first successful parser that does not advance the text position is returned. Otherwise, the failure that advanced the text position farthest is returned.
Succeeds with a successful parser, if any.
public static IParser<T> Or<T>(this IParser<T> first, IParser<T> second)
The first successful parser that advances the text position is returned. Otherwise, the first successful parser that does not advance the text position is returned. Otherwise, the failure that advanced the text position farthest is returned.