Writing a parser: ADL Tokenizer: correction
Sushovan made a great remark on my previous post. He asked me why I didn’t use the method char.IsWhiteSpace to test for white-space. The reason I didn’t, was ignorance: I was not aware that method existed. So it’s probably a good idea to change the method SkipWhitespace to this:
private void SkipWhitespace()
{
while (char.IsWhiteSpace(_currentChar))
{
ReadNextChar();
}
}