Table of Contents

Class LexSyntaxBlock

Namespace
Alternet.Syntax.Lexer
Assembly
Alternet.Syntax.v9.dll

Represents an individual syntax block in the collection of syntax blocks.

public class LexSyntaxBlock : ILexSyntaxBlock
Inheritance
LexSyntaxBlock
Implements

Constructors

LexSyntaxBlock()

Initializes a new instance of the LexSyntaxBlock class with default settings.

LexSyntaxBlock(ILexState)

Initializes a new instance of the LexSyntaxBlock class with a specified owner.

Properties

CaseSensitive

Gets or sets a value indicating whether ILexSyntaxBlock is case-sensitive or not.

Desc

Gets or sets description of the LexSyntaxBlock.

Expression

Represents a collective regular expression pattern for the LexSyntaxBlock.Expressions.

Expressions

Represents a list of regular expression patterns for the LexSyntaxBlock.Expressions.

Index

Represents index of the LexSyntaxBlock within the lexical syntax block collection.

LeaveState

Gets or sets ILexState object that specifies lexical resulting state after lexical analyzer locates text, that matches to the LexSyntaxBlock.Expression.

Name

Gets or sets name of the LexSyntaxBlock.

ReswordSets

Gets or sets collection of the ILexReswordSet object containing Reserved words.

SerializationInfo

Gets or sets an xml representation of this LexSyntaxBlock object.

State

Gets or sets ILexState owning this ILexSyntaxBlock

Style

Gets or sets an ILexStyle object, applicable for text that matches LexSyntaxBlock expression.

Methods

AddExpression(string)

Adds new element to the expression collection.

FindResword(string)

Locates LexReswordSet containing given resword.

OnCaseSensitiveChanged()
OnDescChanged()
OnExpressionsChanged()
OnLeaveStateChanged()
OnNameChanged()
OnReswordSetsChanged()
OnStateChanged()
OnStyleChanged()