[Gllug] Re: [Fsf-friends] RE[fsug-calicut] Help (LISP) !
M.P.Anand Babu
ab at gnu.org.in
Mon Nov 4 02:08:10 UTC 2002
,----
| Paul Roberts <sakar at stelo.uklinux.net> writes:
| > Is Guile usable on its own? I thought it was a library designed to
| > embed the language into other applications.
`----
Yes absolutely.
Guile can be used independently as a Scheme interpreter as well as
an extension library.
Just type "guile" at the prompt, you will get the read-eval-print
loop.
To make scripts executable, add this like to the beginning of the
script and do chmod +x
----->
#!/usr/bin/guile \
-s
!#
<-----
Unlike other scripting languages, guile lets your have command-line
arguments spawn across multiple lines, thats why you have #! and !#
interface.
hello.scm:
----->
#!/usr/bin/guile \
-s
!#
(display "Hello GNU")
(newline)
<-----
Hope this helps
--
_.|_
(_||_)
Free as in Freedom <www.gnu.org>
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list