What is the main task of syntactic analysis?