Euphoria

OpenEuphoria

Installation

Ubuntu
# Download euphoria_{version}_{arch}.deb
apt install ./euphoria_{version}_{arch}.deb
Arch Linux
yay -S openeuphoria
export PATH=/usr/share/openeuphoria/bin:$PATH

Examples

Fibonacci Numbers
-- Fibonacci Numbers
include std/convert.e

function fib(integer n)
    if n < 2 then
        return n
    else
        return fib(n - 2) + fib(n - 1)
    end if
end function

sequence cmd = command_line()
integer n = to_integer(cmd[3])
puts(1, to_string(fib(n)))

/*
    example
        run:
            eui fib.e 30
*/