Méthode | Description | |
---|---|---|
AsText ( ) : string |
Returns a text string which is the combined tokens.
|
|
Peek ( int count ) : |
Peek at a token in the stream.
|
|
Take ( int count = 1 ) : |
Take the given number of tokens.
|
|
TakeWhile ( bool>.Func |
Take tokens in the stream while the given predicate is true.
|
|
TakeWhile ( TokenKind kind ) : void |
Take tokens in the stream while the token kind is the same as the supplied kind.
|
|
TokenEnumerator ( IEnumerable |
Constructor.
|
|
TokenEnumerator ( |
Constructor.
|
Méthode | Description | |
---|---|---|
Checkpoint ( ) : ITokenEnumeratorCheckpoint |
Create a checkpoint on the enumerator that can be rolled back to.
|
|
TokenEnumerator ( ) : System |
Constructor.
|
public Peek ( int count ) : |
||
count | int | The number of tokens to look ahead. |
Résultat |
public Take ( int count = 1 ) : |
||
count | int | The number of tokens to consume. |
Résultat |
public TakeWhile ( bool>.Func |
||
predicate | bool>.Func | The predicate to use for evaluating whether or not to consume a token. |
Résultat | void |
public TakeWhile ( TokenKind kind ) : void | ||
kind | TokenKind | The token kind to test against to determine whether the token should be consumed. |
Résultat | void |
public TokenEnumerator ( IEnumerable |
||
tokenizer | IEnumerable |
The tokenizer to retrieve the tokens from. |
Résultat | System |
public TokenEnumerator ( |
||
tokenReader | The token reader to pull the tokens from. | |
Résultat | System |