Skip to content

Instantly share code, notes, and snippets.

@liancheng
Created January 11, 2013 07:58
Show Gist options
  • Save liancheng/4508801 to your computer and use it in GitHub Desktop.
Save liancheng/4508801 to your computer and use it in GitHub Desktop.
Chibi Scheme libirary sample. Put sample.scm and sample.sld under the same directory, then run `chibi-scheme sample.scm`.
(import (sample))
(hello-world)
(define-library (sample)
(import (scheme base)
(scheme write))
(export hello-world)
(begin
(define (hello-world)
(write "hello world")
(newline))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment