Table of Contents

Interface ISemanticProvider<TChar, T>

Namespace
Farkle.Parser.Semantics
Assembly
Farkle.dll

Provides an interface to customize the semantic analysis stage of Farkle's parsers.

public interface ISemanticProvider<TChar, out T> : ITokenSemanticProvider<TChar>, IProductionSemanticProvider

Type Parameters

TChar

The type of characters that are parsed. Usually it is char or byte (not supported by Farkle's built-in parsers).

T

The type of semantic values produced for the root symbol of the language. This type is covariant.

Inherited Members

Remarks

This interface has no members. It merely inherits ITokenSemanticProvider<TChar> and IProductionSemanticProvider.

Implementations of this interface must ensure that the semantic values of the root symbol of the language are of type T.