In This Article

ProgrammaticLexicalState Class

Provides a default implementation for a lexical state.

public class ProgrammaticLexicalState : LexicalStateBase, ILexicalState, IKeyedObject
Inheritance:
object LexicalStateBase object
Implements:
ILexicalState IKeyedObject

Constructors

ProgrammaticLexicalState(int, string)

Initializes a new instance of the ProgrammaticLexicalState class.

public ProgrammaticLexicalState(int id, string key)
Parameter Type Description
id int

The ID of the lexical state.

key string

The key of the lexical state.

Properties

ChildLexicalStates

Gets the collection of child lexical states.

public ILexicalStateCollection ChildLexicalStates { get; }

Property Value

ILexicalStateCollection:

A ILexicalStateCollection containing the child lexical states.

Lexer

Gets the ILexer that contains the state.

public ILexer Lexer { get; }

Property Value

ILexer:

The ILexer that contains the state.

LexicalScopes

Gets the collection of lexical scopes.

public ILexicalScopeCollection LexicalScopes { get; }

Property Value

ILexicalScopeCollection:

A ILexicalScopeCollection containing the lexical scopes.

Inherited Members