perform syntactic checks within the parser (amends prev. commit)