Contains information about nested lexer.
TSubLexerRange = class(TRange);
ecSyntAnal
Nested lexers allow to combine several lexers to analyse text. Sub-lexer range is a range of text where other lexer acts, i.e. it is used in syntactical analysis.
Strings that match StartExpression and EndExpression, that is bounds of then sub-lexer range, are not included in the range of the nested lexer. They are analyzed by the parent lexer. The bounds of the sub-lexer's range is specified by StartPos and EndPos.
Nesting of sub-lexers is unlimited.
To make rules (token, block, sub-lexer) accessible in nested lexer you have to set AlwaysEnabled property of them to True.
Topic |
Description |
The methods of the TSortedItem class are listed here. |
Topic |
Description |
The methods of the TRange class are listed here. | |
The properties of the TRange class are listed here. |
Topic |
Description |
The properties of the TSubLexerRange class are listed here. |
|
Method |
|
protected |
|
abstract |
|
virtual |
|
Property |
|
read only |
TSubLexerRange Class |
Description |
Indicates zero-based index of the first character after final bound of sub-lexer range. | |
Indicates zero-based index of the first character of starting bound of sub-lexer range. | |
Points to the rule. |
Copyright (c) 2004-2011. All rights reserved.
|
What do you think about this topic? Send feedback!
|