Table of Contents

Class AnyTextGrammar.KeywordRule

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

A rule class representing the rule 'Keyword'

public class AnyTextGrammar.KeywordRule : EscapedRegexRule
Inheritance
AnyTextGrammar.KeywordRule
Inherited Members

Properties

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

Escape(string)

Escapes the given string

public override string Escape(string value)

Parameters

value string

the unescaped string

Returns

string

the escaped string

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.

Unescape(string)

Unescapes the given string

public override string Unescape(string value)

Parameters

value string

the escaped string

Returns

string

the unescaped string