Pidgin

Interface IConfiguration<TToken>

Represents a parser configuration

Declaration
public interface IConfiguration<TToken>
Type Parameters
Name Description

TToken

The type of tokens

Properties

ArrayPoolProvider

The IArrayPoolProvider

Declaration
IArrayPoolProvider ArrayPoolProvider { get; }
Property Value
Type Description

IArrayPoolProvider

SourcePosCalculator

A function which can compute a SourcePosDelta representing the change in position from consuming a token.

Declaration
Func<TToken, SourcePosDelta> SourcePosCalculator { get; }
Property Value
Type Description

Func<TToken, SourcePosDelta>

Extension Methods

Configuration.WithPosCalculator<TToken>(IConfiguration<TToken>, Func<TToken, SourcePosDelta>)
Configuration.WithArrayPoolProvider<TToken>(IConfiguration<TToken>, IArrayPoolProvider)