Tokenizer class performs lexical analysis for the TestSelectionParser. It recognizes a very limited set of tokens: words, symbols and quoted strings. This is sufficient for the simple DSL we use to select which tests to run.
More...
Tokenizer class performs lexical analysis for the TestSelectionParser. It recognizes a very limited set of tokens: words, symbols and quoted strings. This is sufficient for the simple DSL we use to select which tests to run.
NUnit.Common.Tokenizer.Tokenizer |
( |
string |
input | ) |
|
|
inline |
Token NUnit.Common.Tokenizer.NextToken |
( |
| ) |
|
|
inline |
Token NUnit.Common.Tokenizer.GetNextToken |
( |
| ) |
|
|
inlineprivate |
bool NUnit.Common.Tokenizer.IsWordChar |
( |
char |
c | ) |
|
|
inlineprivate |
Token NUnit.Common.Tokenizer.GetWord |
( |
| ) |
|
|
inlineprivate |
Token NUnit.Common.Tokenizer.GetString |
( |
| ) |
|
|
inlineprivate |
char NUnit.Common.Tokenizer.GetChar |
( |
| ) |
|
|
inlineprivate |
Get the next character in the input, consuming it.
- Returns
- The next char
void NUnit.Common.Tokenizer.SkipBlanks |
( |
| ) |
|
|
inlineprivate |
string NUnit.Common.Tokenizer._input |
|
private |
int NUnit.Common.Tokenizer._index |
|
private |
const char NUnit.Common.Tokenizer.EOF_CHAR = '\0' |
|
private |
const string NUnit.Common.Tokenizer.WORD_BREAK_CHARS = "=!()&|" |
|
private |
readonly string [] NUnit.Common.Tokenizer.DOUBLE_CHAR_SYMBOLS = new string[] { "==", "=~", "!=", "!~", "&&", "||" } |
|
private |
Token NUnit.Common.Tokenizer._lookahead |
|
private |
Token NUnit.Common.Tokenizer.LookAhead |
|
get |
char NUnit.Common.Tokenizer.NextChar |
|
getprivate |
Peek ahead at the next character in input
The documentation for this class was generated from the following file: