initial code for syntactic parser