Table of Contents

Interface IParserRuleLifecycleExecutor

Namespace
Utils.Parser.Runtime
Assembly
Utils.Parser.dll

Executes parser rule lifecycle hooks (@init and @after) under a runtime feature policy. Implementations may execute side effects that change observable parser execution-context state.

public interface IParserRuleLifecycleExecutor
Extension Methods

Methods

Execute(ParserRuleLifecyclePhase, string, ParserRuleLifecycleContext)

Executes a rule lifecycle hook for the specified phase and rule name. Implementations should be no-ops when the phase and rule combination is unhandled.

void Execute(ParserRuleLifecyclePhase phase, string ruleName, ParserRuleLifecycleContext context)

Parameters

phase ParserRuleLifecyclePhase

Lifecycle phase being executed (Init or After).

ruleName string

Name of the parser rule triggering the lifecycle event.

context ParserRuleLifecycleContext

Immutable lifecycle context providing positional metadata.