Parser.Or<T> method (1 of 3)

Succeeds with a successful parser, if any.

public static IParser<T> Or<T>(IEnumerable<IParser<T>> parsers)

Remarks

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 first failure is returned.

See Also


Parser.Or<T> method (2 of 3)

Succeeds with a successful parser, if any.

public static IParser<T> Or<T>(IParser<T>[] parsers)

Remarks

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 first failure is returned.

See Also


Parser.Or<T> method (3 of 3)

Succeeds with a successful parser, if any.

public static IParser<T> Or<T>(this IParser<T> first, IParser<T> second)

Remarks

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 first failure is returned.

See Also