
The file math/fibonacci.scm defines a simple extension exporting the FIB
procedure.

The file use-fib.scm is an application which uses the (math fibonacci)
module.  It prints out the fibonacci value for a number given on the
command-line, defaulting to 20.  To run it as a script try any of the
following:

  chicken:  csi -script use-fib.scm
  gambit:   gsi -e '(include "~~/srfi-10000.scm")' use-fib.scm
  gauche:   gosh use-fib.scm                    # with . in GAUCHE_LOAD_PATH
  guile:    guile -s use-fib.scm
  sisc:     sisc -c common-main -x use-fib.scm  # with . in CLASSPATH

You can also compile it to native code with Chicken:

  $ csc -s -O2 math/fibonacci.scm
  $ csc -O2 use-fib.scm
  $ ./use-fib

Or to Java byte-code with SISC:

  $ sisc
  > (require-extension (srfi 10000))
  > (compile-file "math/fibonacci.scm" "math/fibonacci.scc")
  > (compile-file "use-fib.scm" "use-fib.scc")
  > (exit)
  $ sisc -c common-main -x use-fib.scc

------------------------------------------------------------------------

An imported macro example is given in use-sugar.scm, and may be run as
above.

------------------------------------------------------------------------

An example use of some distributed "common" modules is available in
find.scm.

