chicken-module-declarations

Extends CHICKEN’s declaration mechanism with forms for controlling modules, imports and exports.

API

(declare (module alphabet-soup) ; Wraps the current file in a module
         (import abc def ghi)   ; that uses these three libraries
         (export uvw xyz))      ; and exports these two identifiers.

Requirements

Installation

$ git clone http://git.foldling.org/chicken-module-declarations.git
$ cd chicken-module-declarations
$ chicken-install

Usage

Load module-declarations as a compiler extension with the -extend flag to csc(1):

$ csc -extend module-declarations <file>

Documentation is available at chickadee and on the CHICKEN wiki.

Author

Evan Hanson evhan@foldling.org

License

BSD. See LICENSE for details.