Package jjparse

Class Parsing.Abort<T>

Type Parameters:
T - The covariant type of the parsed value, which is unused in case of an Parsing.Abort.
Enclosing class:
Parsing<I>

public final class Parsing.Abort<T> extends Parsing<I>.Failure<T>
Represents a fatal Parsing.Failure.

An Parsing.Abort prevents backtracking during parsing. In particular, when a Parsing.ChoiceParser fails with an Parsing.Abort on its first alternative, it does not attempt to apply the second one.

Note: This class is intended to be immutable and hence covariant in its type parameter.
Author:
Björn Lötters
See Also: