ILexicalState Interface
Provides the base requirements for a lexical state.
public interface ILexicalState : IKeyedObject
Properties
ChildLexicalStates
The collection of child lexical states.
DefaultTokenId
The ID of the default token that this state assigns.
Id
The ID value that identifies the lexical state.
Lexer
The ILexer that contains the state.
LexicalScopes
The collection of lexical scopes.
Tag
The object that contains user-defined data about the object.
Transition
The ILexicalStateTransition that is performed immediately after a start scope match.
ILexicalStateTransition? Transition { get; set; }
Property Value
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.