Provides the abstract base class for a lexical state.
- Inheritance:
- object object
- Implements:
-
ILexical
State IKeyedObject
Constructors
LexicalStateBase(int, string)
Initializes a new instance of the LexicalStateBase
class.
Parameter | Type | Description |
---|---|---|
id | int | The ID of the lexical state. |
key | string | The key of the lexical state. |
Properties
ChildLexicalStatesCore
Gets the collection of child lexical states.
Property Value
- ILexical
State :Collection A Lexical
State containing the child lexical states.Collection
DefaultTokenId
Gets or sets the ID of the default token that this state assigns.
Property Value
- int:
The ID of the default token that this state assigns.
DefaultTokenKey
Gets or sets the key of the default token that this state assigns.
Property Value
- string:
The key of the default token that this state assigns.
Id
Gets or sets the ID value that identifies the lexical state.
Property Value
- int:
The ID value that identifies the lexical state.
Key
Gets a string-based key that identifies the lexical state.
Property Value
- string:
A string-based key that identifies the lexical state.
LexerCore
Gets or sets the ILexer that contains the state.
LexicalScopesCore
Gets the collection of lexical scopes.
Property Value
- ILexical
Scope :Collection A Lexical
Scope containing the lexical scopes.Collection
Tag
Gets or sets the object that contains user-defined data about the object.
Transition
Gets or sets the ILexical
Property Value
- ILexical
State :Transition The ILexical
State that is performed immediately after a start scope match.Transition
Remarks
This provides a mechanism to automatically transition to another language when this state's start scope is matched. This state's end scope may be used to exit the child language.
ASP-style tags are an example of when to use this transition.
Methods
CreateChildLexicalStates()
Creates the ILexical
Returns
- ILexical
State :Collection The ILexical
State that was created.Collection
CreateLexicalScopes()
Creates the ILexical
Returns
- ILexical
Scope :Collection The ILexical
Scope that was created.Collection