Table of Contents

Class RecursiveContinuation

Namespace
NMF.AnyText.Rules
Assembly
NMF.AnyText.Core.dll

Denotes a recursive continuation

public abstract class RecursiveContinuation
Inheritance
RecursiveContinuation
Inherited Members

Constructors

RecursiveContinuation(IEnumerable<Rule>)

Creates a new continuation

protected RecursiveContinuation(IEnumerable<Rule> affectedRules)

Parameters

affectedRules IEnumerable<Rule>

the rules that need to be invalidated when performing the recursion

Properties

AffectedRules

Gets the rules needed to invalidate before executing the recursion

public List<Rule> AffectedRules { get; }

Property Value

List<Rule>

Methods

ResolveRecursion(RuleApplication, ParseContext, RecursionContext, ref ParsePosition)

Grows the given base rule application

public virtual RuleApplication ResolveRecursion(RuleApplication baseApplication, ParseContext parseContext, RecursionContext recursionContext, ref ParsePosition position)

Parameters

baseApplication RuleApplication

the base rule application

parseContext ParseContext

the parse context in which the continuation is done

recursionContext RecursionContext

the recursion context in which the continuation is executed

position ParsePosition

the position of the parser

Returns

RuleApplication

the grown rule application