Identifying simple and compound statements