Implemented closure parsing and basic code generation