private void EatWhitespace(string code, Position position) { // eat whitespace while ((code.Length > position.CurrentIndex) && (Char.IsWhiteSpace(code[position.CurrentIndex]))) { position.MoveIndex(); } }