manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

31.3.1 An example of SRFI-22 script

Let us consider the following Bigloo script located in a file ‘foo.scm’:

#! /usr/bin/env ./execute
(module foo
   (main main))

(define (main argv)
   (print "foo: " argv))

Let us consider the following ‘execute’ shell script:

$ cat > execute
#!/bin/sh
bigloo -i $*

Provided that ‘foo.scm’ as the execute flag switched on, it is possible to execute it:

$ chmod u+x foo.scm
$ ./foo.scm
  -| foo: (./foo.scm)

The same Bigloo module can be compiled and executed such as:

$ bigloo foo.scm
$ ./a.out
  -| foo: (a.out)

This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.