cl-cont

API Reference

cl-cont

A library that implements continuations by transforming Common Lisp code to continuation passing style.

CL-CONT

A library that implements continuations by transforming Common
  Lisp code to continuation passing style.
  • Macro DEFCPSTRANSFORMER (name lambda-list &body body)
    A macro that allows defining special case CPS transformers.
  • Function CPSTRANSFORMER (name)
    Returns a CPS transformer named by a given NAME.
  • Function COPY-TRANSFORMATION-CONTEXT (ctx)
    Copies transformation context. This is used for cases when the context has to be 'frozen' in time and used at a later transformation stage.
  • Function CALL/CC (cc)
    Implements delimited continuations.
  • Macro LET/CC (k &body body)
    A shortcut for CALL/CC.
  • Function EXPR-SEQUENCE->CPS (expr-list k-expr env)
    Converts a list of expressions to be evaluated in order to CPS style.
  • Macro LAMBDA/CC (args-list &body body)
    A helper macro that wraps LAMBDA definitions with WITH-CALL/CC.
  • Macro WITHOUT-CALL/CC (&body body)
    A macro that allows writing macros to produce non-CPS code uniformly within and without with-call/cc.
  • Macro DEFUN/CC (name arglist &body body)
    A helper macro to define a function that supports CALL/CC.
  • Macro WITH-CALL/CC (&body body &environment env)
    Gives access to CALL/CC by transforming BODY to continuation passing style.
  • Function EXPR->CPS (expr k-expr env)
    Transforms expression to CPS style.

cl-cont-test

A test harness for cl-cont library.

CL-CONT-TEST

  • Function TEST-CONT
    Call this function to run all unit tests defined in 'cont-test' package.