Contains information about a token.
TSyntToken = class(TRange);
ecSyntAnal
Tokens is base result of syntax analysis. It may be word, number, string, comment and so on. The meaning of the token depends on the rule that creates this token.
Each token is the part of the text that matches corresponding regular expression (TTokenRule.Expression). Tokens can not intersect each other.
To access tokens array use TClientSyntAnalyzer.Tags property.
To get token position in text use StartPos property, to get length of the token use (EndPos - StartPos).
TagPos indicates in-line position (token number in the line; line number).
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 methods of the TSyntToken class are listed here. | |
The properties of the TSyntToken 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. |
Copyright (c) 2004-2011. All rights reserved.
|
What do you think about this topic? Send feedback!
|