Rewrite Typescript Parser