cps-transformer

Community

Transform code to Continuation-Passing Style.

Authorrainoftime
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill transforms direct-style programs into Continuation-Passing Style (CPS), which is crucial for implementing advanced control flow mechanisms and optimizing compiler backends.

Core Features & Use Cases

  • Compiler Intermediate Representation: Generate CPS as an intermediate form for compilers.
  • Control Operator Implementation: Build support for call/cc, delimited continuations, and other control flow primitives.
  • Use Case: Convert a complex recursive function in a functional language to its CPS equivalent to enable tail-call optimization and prevent stack overflows.

Quick Start

Transform the provided Scheme code snippet into Continuation-Passing Style.

Dependency Matrix

Required Modules

lambda-calculus-interpreter

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cps-transformer
Download link: https://github.com/rainoftime/pl-skills/archive/main.zip#cps-transformer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.