Linux Know-How provides a collection of introductory texts on often needed Linux skills.


Scheme

guile

An implementation of "Scheme" programming language. Scheme is a modern dialect of the LISP language (the one that has been promising the artificial intelligence for the last 40 years).

Silly examples for the guile interpreter.

guile

(+ 1 1)

(define a 2)

(/ a 3)

(= a 7)

(display "hello\n")

(system "ls")

(exit)

The first command runs the guile interpreter. The next four commands do addition, definition, division, and comparison using the so-called Polish notation (operator in front of the operants). See the section on reverse Polish notation on this page. The last command exits the guile interpreter.


Last Update: 2010-12-16