Table of Contents

Class AnyTextGrammar.RuleNameIDRule

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

Rule to assign the contents of the inner rule to Name

public class AnyTextGrammar.RuleNameIDRule : AssignRule<IRule, string>
Inheritance
AnyTextGrammar.RuleNameIDRule
Inherited Members

Properties

Feature

Gets the name of the feature that is assigned

protected override string Feature { get; }

Property Value

string

IsIdentifier

Gets the first contained rule application that represents an identifier

public override bool IsIdentifier { get; }

Property Value

bool

TokenModifiers

Gets the token modifiers of

public override string[] TokenModifiers { get; }

Property Value

string[]

TokenType

Gets the token type of tokens created for this rule

public override string TokenType { get; }

Property Value

string

Methods

GetValue(IRule, ParseContext)

Gets the value of the given property

protected override string GetValue(IRule semanticElement, ParseContext context)

Parameters

semanticElement IRule

the context element

context ParseContext

the parsing context

Returns

string

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(IRule, string, ParseContext)

Assigns the value to the given semantic element

protected override void SetValue(IRule semanticElement, string propertyValue, ParseContext context)

Parameters

semanticElement IRule

the context element

propertyValue string

the value to assign

context ParseContext

the parsing context