Table of Contents

Class AnyTextGrammar.FragmentRuleExpressionParserExpressionRule

Namespace
NMF.AnyText.Grammars
Assembly
NMF.AnyText.dll

Rule to assign the contents of the inner rule to Expression

public class AnyTextGrammar.FragmentRuleExpressionParserExpressionRule : AssignRule<IFragmentRule, IParserExpression>
Inheritance
AnyTextGrammar.FragmentRuleExpressionParserExpressionRule
Inherited Members

Properties

Feature

Gets the name of the feature that is assigned

protected override string Feature { get; }

Property Value

string

Methods

GetValue(IFragmentRule, ParseContext)

Gets the value of the given property

protected override IParserExpression GetValue(IFragmentRule semanticElement, ParseContext context)

Parameters

semanticElement IFragmentRule

the context element

context ParseContext

the parsing context

Returns

IParserExpression

the property value

Initialize(GrammarContext)

Initializes the current grammar rule

public override void Initialize(GrammarContext context)

Parameters

context GrammarContext

the grammar context in which the rule is initialized

Remarks

Do not modify the contents of this method as it will be overridden as the contents of the AnyText file change.

SetValue(IFragmentRule, IParserExpression, ParseContext)

Assigns the value to the given semantic element

protected override void SetValue(IFragmentRule semanticElement, IParserExpression propertyValue, ParseContext context)

Parameters

semanticElement IFragmentRule

the context element

propertyValue IParserExpression

the value to assign

context ParseContext

the parsing context