Property | Type | Description | |
---|---|---|---|
m_in | |||
m_line | int | ||
m_type | int | ||
m_val | object |
Method | Description | |
---|---|---|
Tokenizer ( |
Construct for specified input stream.
|
|
err ( string msg ) : System.Exception | ||
next ( ) : int |
Read the next token from the stream. The token is available via the 'type' and 'val' fields. The line of the current token is available in 'line' field. Return the 'type' field or -1 if at end of stream.
|
|
reset ( int type, object val, int line ) : int |
Reset the current token state.
|
|
undo ( int type, object val, int line ) : void |
Pushback a token which will be the next read.
|
Method | Description | |
---|---|---|
Tokenizer ( ) : System.Text | ||
ch ( ) : int |
Parse a char literal token (as Long literal).
|
|
consume ( ) : void | ||
doNext ( ) : int |
Read the next token, set the 'val' field but return type without worrying setting the 'type' field.
|
|
escape ( ) : char |
Parse an escapse sequence which starts with a \
|
|
hex ( ) : int |
Process hex int/long literal starting with 0x
|
|
hex ( int c ) : int | ||
id ( ) : int |
Parse an identifier: alpha (alpha|number)*
|
|
number ( bool neg ) : int |
Parse a number literal token.
|
|
skipCommentML ( ) : |
Skip a multi line /* comment. Note unlike C/Java, slash/star comments can be nested.
|
|
skipCommentSL ( ) : |
Skip a single line // comment
|
|
str ( ) : int |
Parse a string literal token.
|
|
uri ( ) : int |
Parse a uri literal token.
|
public Tokenizer ( |
||
@in | ||
return | System.Text |
public reset ( int type, object val, int line ) : int | ||
type | int | |
val | object | |
line | int | |
return | int |
public undo ( int type, object val, int line ) : void | ||
type | int | |
val | object | |
line | int | |
return | void |