C# Class dotless.Core.Parser.Tokenizer

Show file Open project: madaboutcode/dotless Class Usage Examples

Public Methods

Method Description
Advance ( int length ) : void
GetZone ( string error, int position, int call, string fileName ) : Zone
HasCompletedParsing ( ) : bool
Match ( char tok ) : CharMatchResult
Match ( string tok ) : RegexMatchResult
Match ( string tok, bool caseInsensitive ) : RegexMatchResult
MatchString ( char tok ) : string
MatchString ( string tok ) : string
Peek ( char tok ) : bool
Peek ( string tok ) : bool
SetupInput ( string input ) : void
Tokenizer ( int optimization ) : System.Collections.Generic

Private Methods

Method Description
GetRegex ( string pattern, RegexOptions options ) : Regex

Method Details

Advance() public method

public Advance ( int length ) : void
length int
return void

GetZone() public method

public GetZone ( string error, int position, int call, string fileName ) : Zone
error string
position int
call int
fileName string
return Zone

HasCompletedParsing() public method

public HasCompletedParsing ( ) : bool
return bool

Match() public method

public Match ( char tok ) : CharMatchResult
tok char
return CharMatchResult

Match() public method

public Match ( string tok ) : RegexMatchResult
tok string
return RegexMatchResult

Match() public method

public Match ( string tok, bool caseInsensitive ) : RegexMatchResult
tok string
caseInsensitive bool
return RegexMatchResult

MatchString() public method

public MatchString ( char tok ) : string
tok char
return string

MatchString() public method

public MatchString ( string tok ) : string
tok string
return string

Peek() public method

public Peek ( char tok ) : bool
tok char
return bool

Peek() public method

public Peek ( string tok ) : bool
tok string
return bool

SetupInput() public method

public SetupInput ( string input ) : void
input string
return void

Tokenizer() public method

public Tokenizer ( int optimization ) : System.Collections.Generic
optimization int
return System.Collections.Generic