The study of the composition, chemical structures, and chemical reactions of the nervous system or its components.