implemented parser for statement