C# Class FirstFloor.ModernUI.Windows.Controls.BbCode.Lexer

Provides basic lexer functionality.
Datei anzeigen Open project: gro-ove/actools

Public Methods

Method Description
NextToken ( ) : Token

Gets the next token.

Protected Methods

Method Description
Consume ( ) : void

Consumes the next character.

IsInRange ( char value ) : bool

Determines whether the current character is in given range.

IsInRange ( char first, char last ) : bool

Determines whether the current character is in given range.

Keep ( ) : void
La ( int count ) : char

Performs a look-ahead.

Lexer ( string value ) : System

Initializes a new instance of the T:Lexer class.

Mark ( ) : void

Marks the current position.

Match ( [ value ) : void

Matches the specified string.

Match ( char value ) : void

Matches the specified character.

Match ( char value, int minOccurs, int maxOccurs ) : void

Matches the specified character.

MatchRange ( char value ) : void

Matches the range.

MatchRange ( char first, char last ) : void

Matches the range.

MatchRange ( char first, char last, int minOccurs, int maxOccurs ) : void

Matches the range.

MatchRange ( char value, int minOccurs, int maxOccurs ) : void

Matches the range.

PopState ( ) : int

Pops the state.

PushState ( int state ) : void

Pushes a new state on the stac.

Restore ( ) : void

Private Methods

Method Description
GetMark ( ) : string
ValidateOccurence ( int count, int minOccurs, int maxOccurs ) : void

Method Details

Consume() protected method

Consumes the next character.
protected Consume ( ) : void
return void

IsInRange() protected method

Determines whether the current character is in given range.
protected IsInRange ( char value ) : bool
value char The value.
return bool

IsInRange() protected method

Determines whether the current character is in given range.
protected IsInRange ( char first, char last ) : bool
first char The first.
last char The last.
return bool

Keep() protected method

protected Keep ( ) : void
return void

La() protected method

Performs a look-ahead.
protected La ( int count ) : char
count int The number of characters to look ahead.
return char

Lexer() protected method

Initializes a new instance of the T:Lexer class.
protected Lexer ( string value ) : System
value string The value.
return System

Mark() protected method

Marks the current position.
protected Mark ( ) : void
return void

Match() protected method

Matches the specified string.
protected Match ( [ value ) : void
value [ The value.
return void

Match() protected method

Matches the specified character.
protected Match ( char value ) : void
value char The value.
return void

Match() protected method

Matches the specified character.
protected Match ( char value, int minOccurs, int maxOccurs ) : void
value char The value.
minOccurs int The min occurs.
maxOccurs int The max occurs.
return void

MatchRange() protected method

Matches the range.
protected MatchRange ( char value ) : void
value char The value.
return void

MatchRange() protected method

Matches the range.
protected MatchRange ( char first, char last ) : void
first char The first.
last char The last.
return void

MatchRange() protected method

Matches the range.
protected MatchRange ( char first, char last, int minOccurs, int maxOccurs ) : void
first char The first.
last char The last.
minOccurs int The min occurs.
maxOccurs int The max occurs.
return void

MatchRange() protected method

Matches the range.
protected MatchRange ( char value, int minOccurs, int maxOccurs ) : void
value char The value.
minOccurs int The min occurs.
maxOccurs int The max occurs.
return void

NextToken() public abstract method

Gets the next token.
public abstract NextToken ( ) : Token
return Token

PopState() protected method

Pops the state.
protected PopState ( ) : int
return int

PushState() protected method

Pushes a new state on the stac.
protected PushState ( int state ) : void
state int The state.
return void

Restore() protected method

protected Restore ( ) : void
return void