Smalltalk

GNU Smalltalk

Installation

Ubuntu
apt install gnu-smalltalk
Arch Linux
pacman -S smalltalk

Examples

Fibonacci Numbers
"Fibonacci Numbers"
Integer extend [
    fib [
        self < 2
        ifTrue: [ ^self ]
        ifFalse: [ ^(self - 2) fib + (self - 1) fib ].
    ]
]

Smalltalk arguments first asInteger fib printNl.

"example
    run:
        gst fibonacci.st -a 39
"