The study of the anatomy of the nervous system, including the brain, spinal cord, and peripheral nerves.