Links
EControl Syntax Editor SDK
TSubAnalyzerRule Class

Specifies rule for sub-lexer range detecting.

TSubAnalyzerRule = class(TRuleCollectionItem);

ecSyntAnal

TSubAnalyzerRule contains expressions (StartExpression and EndExpression) for detecting begin and end of the range where nested lexer acts. These expressions are tested before token parsing. 

If sub-lexer range must start from the begin of then text set property FromTextBegin to True. Nested lexer starts at the begin of the text. 

If sub-lexer range must be closed at the end of the text set property ToTextEnd to True. Nested lexer closes at the end of the text. 

 

Nested lexer is defined by the SyntAnalyzer property. 

 

See also "Nested lexers" topic.

Topic 
Description 
The methods of the TSyntCollectionItem class are listed here. 
The properties of the TSyntCollectionItem class are listed here. 
TRuleCollectionItem Class
Topic 
Description 
The properties of the TRuleCollectionItem class are listed here. 
TSubAnalyzerRule Class
Topic 
Description 
The methods of the TSubAnalyzerRule class are listed here. 
The properties of the TSubAnalyzerRule class are listed here. 
 
Constructor 
 
virtual 
 
protected 
 
Property 
 
read only 
TSyntCollectionItem Methods 
Description 
Creates and initializes a TSyntCollectionItem instance. 
Indicates whether rule is invalid. 
Returns initial name of the collection item. 
Initializes the item after the lexer has been read into memory. 
TSubAnalyzerRule Class
TSubAnalyzerRule Class 
Description 
Creates and initializes a TSubAnalyzerRule instance. 
Destroys an instance of TSubAnalyzerRule. 
Matches EndExpression with the text (Source) at the position (Pos). 
Matches StartExpression with the text (Source) at the position (Pos). 
TSyntCollectionItem Properties 
Description 
Specifies the name of the collection item. 
Controls whether the style or rule is used in syntactical analysis. 
Indicates whether rule is invalid. 
TRuleCollectionItem Class
TRuleCollectionItem Class 
Description 
Specifies whether rule is active in nested lexers. 
Specifies a rule of parent text range to test. 
Specifies a rule of parent text range to test. 
Specifies whether parent text range condition must be inverted. 
Specifies which state must be absent in current parser state. 
Specifies which states should be added to current parser states. 
Specifies which states must be present in current parser state. 
Specifies which states should be removed from current parser states. 
Specifies whether Block is rule of the immediate parent text range. 
Specifies a style associated with the rule. 
Specifies a style associated with the rule. 
Returns owner of the rule. 
TSubAnalyzerRule Class
TSubAnalyzerRule Class 
Description 
Regular expression that is tested to detect end of the sub-lexer range. 
Specifies whether sub-lexer range must be created at the begin of the text. 
Specifies which analyzer should be used to process bounding text. 
Regular expression that is tested to detect start of the sub-lexer range. 
Specifies nested lexer. 
Specifies whether sub-lexer range may be closed at the end of the text. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!