[]
Defines the Lexicon class.
public class Lexicon
Provides a tool, that can parse the key word form the text. Each key word take effecting by a IPattern interface, lexicon will try to find it by the order. The find is described by Lexicon.Match. You also can set the two kinds of relation ship: Repellency and Dependency. Repellency, make a pattern not take effecting, when a pattern has been matched. Dependency, make a pattern not take effecting, until a pattern has been matched.
| Name | Description |
|---|---|
| Lexicon() | Constructor. |
| Lexicon(char, object) | Constructor. |
| Name | Description |
|---|---|
| AssertionID | Indicates the assertion id. |
| ESCAPE | Indicates the esacpe char. |
| LiteralsID | Indicates the id of the literals. |
| Name | Description |
|---|---|
| Count | Gets the item count. |
| Dependency | Gets the dependency set. |
| this[int] | Gets or sets the item by speical index. |
| Repellency | Gets the repellency set. |
| Name | Description |
|---|---|
| Add(LexiconItem) | Adds a item into the collection. |
| BuildMatch(string) | Creates the first match. |
| BuildMatches(string) | Gets the matches collection. |
| Remove(LexiconItem) | Remove a item form the collection. |