Links
EControl Syntax Editor SDK
TSubLexerRange Class

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. 
TRange Class
Topic 
Description 
The methods of the TRange class are listed here. 
The properties of the TRange class are listed here. 
TSubLexerRange Class
Topic 
Description 
The properties of the TSubLexerRange class are listed here. 
 
Method 
 
protected 
 
abstract 
 
virtual 
 
Property 
 
read only 
TSortedItem Methods 
Description 
Derived classes should return the ID of the item. This ID is used for sorting. 
TRange Class
TRange Class 
Description 
Creates new range with the specified limits. 
Derived classes should return the ID of the item. This ID is used for sorting. 
TRange Class
TRange Class 
Description 
End position of the range. This position is not included in the range. 
Size 
Length of the range.
Size = EndPos - StartPos
Start position of the range. Start position is included in the range. 
TSubLexerRange Class
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. 
Rule 
Points to the rule. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!