The goal of syntactic analysis is to write down syntactic rules that generates all and only the grammatical sentences in a language.