🌀 A brand-new compiler that allows practical application development using R7RS Scheme. We provide modern features and a stable system capable of generating fast native binaries.
Find a file
2015-08-12 19:08:07 -04:00
debug Initial file 2015-02-21 22:15:18 -05:00
docs Re-arranged paragraphs in overview section 2015-08-04 18:13:37 -04:00
examples Add missing imports 2015-07-24 21:28:10 -04:00
include/cyclone Experimenting with a macro type 2015-08-11 22:26:20 -04:00
scheme Compile macros as the macro_type 2015-08-11 22:50:30 -04:00
tests Added for-each functions 2015-07-28 22:50:41 -04:00
.gitignore Initial file 2015-02-21 22:25:06 -05:00
cyclone.scm Include .scm/.sld file in traces, not .c file 2015-08-04 21:46:53 -04:00
generate-c.scm Added file header 2015-08-12 19:08:07 -04:00
icyc.scm Self-hosted version compiles now, but is very broken... 2015-07-01 22:58:36 -04:00
LICENSE Updated year 2015-07-22 21:30:15 -04:00
Makefile Move library code to corresponding sld files 2015-08-12 00:07:54 -04:00
Makefile.config WIP 2015-07-20 22:55:46 -04:00
README.md Revisions 2015-08-04 17:53:12 -04:00
runtime.c Experimenting with a macro type 2015-08-11 22:26:20 -04:00
test.scm WIP 2015-07-24 21:26:56 -04:00
test2.scm Compile macros as the macro_type 2015-08-11 22:50:30 -04:00
TODO Added file header 2015-08-12 19:08:07 -04:00

cyclone-scheme

Cyclone is an experimental Scheme-to-C compiler that uses the Cheney on the MTA technique to implement full tail recursion, continuations, and generational garbage collection.

Getting Started

  1. To install Cyclone on your machine for the first time use cyclone-bootstrap to build a set of binaries.

  2. After installing you can run the cyclone command to compile a single Scheme file:

     $ cyclone examples/fac.scm
     $ examples/fac
     3628800
    

    And the icyc command to start an interactive interpreter:

     $ icyc
    
                   :@
                 @@@
               @@@@:
             `@@@@@+
            .@@@+@@@      Cyclone
            @@     @@     An experimental Scheme compiler
           ,@             https://github.com/justinethier/cyclone
           '@
           .@
            @@     #@     (c) 2014 Justin Ethier
            `@@@#@@@.     Version 0.0.1 (Pre-release)
             #@@@@@
             +@@@+
             @@#
           `@.
    
     cyclone> (write 'hello-world)
     hello-world
    

    You can use rlwrap to make the interpreter more friendly, EG: rlwrap icyc.

  3. If you need help learning the Scheme language try a classic textbook such as Structure and Interpretation of Computer Programs.

    Also, check out the features page for a list of language features currently implemented.

Documentation

Features is a list of the language features implemented so far. For more information about the Scheme language implemented by Cyclone, see the R7RS Scheme Specification.

The Development Guide contains instructions for hacking on Cyclone.

Writing the Cyclone Scheme Compiler provides high-level details on how the compiler was written and how it works.

References

License

Copyright (C) 2014 Justin Ethier.

Cyclone is available under the MIT license.