Summer.Batch.Extra.Sort.Legacy.Parser.Lexer Class Reference

Lexer for DFSORT configuration strings. More...

Public Member Functions

string SubString (int start, int length)
 Substring facility More...
 
 Lexer (string configuration)
 Default constructor. More...
 
bool MoveNext ()
 Advances the lexer to the next token. More...
 
string Parse ()
 Parse - move to next token. More...
 
void Parse (string token)
 Parse given token More...
 
int ParseInt ()
 Try parsing current as int More...
 

Properties

string Current [get]
 The current token More...
 
int Index [get]
 An index that points to the next character to read. More...
 

Detailed Description

Lexer for DFSORT configuration strings.

Constructor & Destructor Documentation

Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.Lexer ( string  configuration)

Default constructor.

Parameters
configurationthe configuration string to parse

Member Function Documentation

bool Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.MoveNext ( )

Advances the lexer to the next token.

Returns
true if a token was successfully parsed; false if the end of the configuration string has been reached
string Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.Parse ( )

Parse - move to next token.

Returns
void Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.Parse ( string  token)

Parse given token

Parameters
token
int Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.ParseInt ( )

Try parsing current as int

Returns
string Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.SubString ( int  start,
int  length 
)

Substring facility

Parameters
start
length
Returns

Property Documentation

string Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.Current
get

The current token

int Summer.Batch.Extra.Sort.Legacy.Parser.Lexer.Index
get

An index that points to the next character to read.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Sort/Legacy/Parser/Lexer.cs