Constructor functions, extension methods and utilities for working with Maybe<T>
Represents an error encountered during parsing.
Thrown when a parse error is encountered during parsing
Constructor functions, extension methods and utilities for Parser<TToken, T>. This class is intended to be imported statically ("using static Pidgin.Parser").
Constructor functions, extension methods and utilities for Parser<TToken, T> This class is intended to be imported statically, with the type parameter set to the type of tokens in your input stream ("using static Pidgin.Parser<char>").
Represents a parser which consumes a stream of values of type
TToken and returns a value of type
A parser can either succeed, and return a value of type
T, or fail and return a ParseError<TToken>.
Extension methods for running parsers
Represents the result of parsing. A parse result may be successful (Success == true), in which case it contains a value, or it may be a failure, in which case it contains an error
An uninteresting type with only one value (Value) and no fields.
void, but valid as a type parameter
Represents a parsing expectation for error reporting.
Expected values are either a sequence of expected tokens (in which case
Label == null && Tokens != null),
a custom-named parser (
Label != null && Tokens == null),
or the end of the input stream (
Label == null && Tokens == null)
Represents a single possibly absent value. Like
Nullable but works for reference types as well as value types.
Represents a (line, col) position in an input stream
A function which computes a result from a