Table of Contents

Interface IEmbeddedCodePreparer<TPredicateArtifact, TActionArtifact>

Namespace
Utils.Parser.EmbeddedCode
Assembly
Utils.Parser.dll

Defines the minimal preparation boundary for ANTLR parser embedded code.

public interface IEmbeddedCodePreparer<TPredicateArtifact, TActionArtifact>

Type Parameters

TPredicateArtifact

Prepared artifact type produced for semantic predicates.

TActionArtifact

Prepared artifact type produced for inline parser actions.

Extension Methods

Methods

PrepareParserAction(EmbeddedCodeSource, EmbeddedCodePreparationContext)

Prepares inline parser action source without executing it.

EmbeddedCodePreparationResult<TActionArtifact> PrepareParserAction(EmbeddedCodeSource source, EmbeddedCodePreparationContext context)

Parameters

source EmbeddedCodeSource

Raw embedded-code source and metadata for an inline parser action.

context EmbeddedCodePreparationContext

Explicit preparation context selected by the caller.

Returns

EmbeddedCodePreparationResult<TActionArtifact>

Preparation result containing an artifact or metadata that explains why no artifact was produced.

PrepareSemanticPredicate(EmbeddedCodeSource, EmbeddedCodePreparationContext)

Prepares semantic predicate source without evaluating it.

EmbeddedCodePreparationResult<TPredicateArtifact> PrepareSemanticPredicate(EmbeddedCodeSource source, EmbeddedCodePreparationContext context)

Parameters

source EmbeddedCodeSource

Raw embedded-code source and metadata for a semantic predicate.

context EmbeddedCodePreparationContext

Explicit preparation context selected by the caller.

Returns

EmbeddedCodePreparationResult<TPredicateArtifact>

Preparation result containing an artifact or metadata that explains why no artifact was produced.