private string ParseName() { Token token = this.NextToken(); if (token == null) throw new LexerException("Unexpected End of Input"); if (token.Type != TokenType.Name) throw new LexerException("Expected Name"); return token.Value; }