Saffron

A general-purpose programming language with dynamic typing.

Getting Started

Follow the steps below to install and run Saffron programs.

1. Install

Saffron comes with a bundled Java Runtime Environment - no separate Java installation required!

For Linux/macOS:

Using curl:

curl -sSL \
https://raw.githubusercontent.com/senthilvsh/saffron/master/installers/install.sh | bash

...or using wget:

wget -qO- \
https://raw.githubusercontent.com/senthilvsh/saffron/master/installers/install.sh | bash

For Windows (PowerShell):

Invoke-Expression `
(New-Object System.Net.WebClient).DownloadString( `
'https://raw.githubusercontent.com/senthilvsh/saffron/master/installers/windows.ps1')

The installer will:

  1. Detect your operating system and architecture
  2. Download and install OpenJDK JRE 17
  3. Download and setup Saffron
  4. Add Saffron to your PATH

2. Run a Saffron program

To run a Saffron program called my-program.sfr, use the following command.

saffron "my-program.sfr"

3. Uninstall

To uninstall Saffron:

  1. Delete the .saffron directory from your user home folder.
  2. Remove the path of the above directory from the PATH environment variable.