handle unfinished statments in parser