Working parser on testcases and sample programs