Grammar models oriented toward two-sided syntactic analysis of language