Provides the base requirements for an object that should receive parse output from a lexer.
Properties
HasInitialContext
Gets whether an initial context is available, from which incremental parsing can resume.
Property Value
- bool:
true
if an initial context is available; otherwise,false
.
Methods
OnPostParse(int)
Occurs after lexing ends.
Parameter | Type | Description |
---|---|---|
endOffset | int | The offset at which parsing has stopped. |
OnPreParse(ref int)
Occurs before lexing starts.
Parameter | Type | Description |
---|---|---|
startOffset | int | The offset at which parsing will commence. |
Returns
- ILexer
Context : A ILexer
Context that contains information about the starting context.
OnTokenParsed(IToken, ILexicalScopeStateNode)
Occurs when an IToken is parsed by the lexer.
Parameter | Type | Description |
---|---|---|
newToken | IToken | The IToken that was parsed. |
scopeStateNode | ILexical |
The ILexical |
Returns
- bool:
true
if the lexing should continue; otherwise,false
.