[]
        
(Showing Draft Content)

C1.Framework.Text.Lexicons.Lexicon

Lexicon Class

Defines the Lexicon class.

Inheritance
Lexicon
Namespace: C1.Framework.Text.Lexicons
Assembly: C1.Win.Input.8.dll
Syntax
public class Lexicon
Remarks

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.

Constructors

Name Description
Lexicon()

Constructor.

Lexicon(char, object)

Constructor.

Fields

Name Description
AssertionID

Indicates the assertion id.

ESCAPE

Indicates the esacpe char.

LiteralsID

Indicates the id of the literals.

Properties

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.

Methods

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.