Method | Description | |
---|---|---|
GetList ( ) : string>>>.List |
Returns a List of list of key/value pairs...
|
|
JsonParser ( string data ) : System |
constructor, data is the input string to tokenize call Tokenize() to do the work
|
|
PeekAtToken ( int x ) : |
To use this lexer as an enumerator, peek at the current pos + x token of the list, returns a new TokenEof if can't find
|
|
Tokenize ( ) : void |
Call this method to actually tokenize the string
|
Method | Description | |
---|---|---|
CreateSymbolToken ( ) : |
||
CreateWhitespaceToken ( ) : |
create a whitespace token (successions of either ' ' or '\t')
|
|
GetNext ( ) : |
returns the next token of the string
|
|
GetTokenValue ( ) : string |
Returns the current value of the token
|
|
PeekAt ( int x ) : char |
Peek forward x chars
|
|
Read ( ) : void |
Read to the next char, indirectly adding the current char (_data[_pos]) to the current token
|
|
ReadString ( char strChar ) : void |
reads a string " "
|
|
ReadWord ( ) : void |
reads a word with this format : [a-Z_&]+[\w_-]*((\.[\w_-]*)?){1,}
|
public PeekAtToken ( int x ) : |
||
x | int | |
return |