small fix in parser
added for-loop testcase
Merge pull request #3 from emilyhsia/master

small fix in parser