Specifies rule for token detecting.
TTokenRule = class(TRuleCollectionItem);
ecSyntAnal
If a text at particular position satisfies the Expression of token rule, token (TSyntToken) will be created and analysis is broken.
As a language for rules used subset of Perl's regular expressions.
See "Token rules (parser)" topic to learn more about token rules.
|
Topic |
Description |
|
The methods of the TSyntCollectionItem class are listed here. | |
|
The properties of the TSyntCollectionItem class are listed here. |
|
Topic |
Description |
|
The properties of the TRuleCollectionItem class are listed here. |
|
Topic |
Description |
|
The methods of the TTokenRule class are listed here. | |
|
The properties of the TTokenRule class are listed here. | |
|
The events of the TTokenRule class are listed here. |
|
Constructor |
|
virtual |
|
protected |
|
Property |
|
read only |
|
Event |
|
TTokenRule Class |
Description |
|
Occurs after token rule is tested. | |
|
Occurs when user clicks on the token. |
|
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. |
|
TTokenRule Class |
Description |
|
Creates and initializes a TTokenRule instance. | |
|
Destroys an instance of TTokenRule. | |
|
Indicates whether rule is invalid. | |
|
Returns initial name of the collection item. | |
|
Matches Expression 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 |
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. |
|
TTokenRule Class |
Description |
|
Specifies start position in line after which rule may be tested. | |
|
Specifies end position in line after which rule can not be tested. | |
|
Regular expression to match text at the currently analysed position. | |
|
Specifies integer value associated with the tokens created by this rule. |
|
Copyright (c) 2004-2011. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|