Running
It is also possible to run Sidef without having to install it. If you're using a Unix-like OS, all you need to do is to execute the following commands:
1
$ wget 'https://github.com/trizen/sidef/archive/master.zip' -O 'master.zip'
2
$ unzip 'master.zip'
3
$ cd 'sidef-master/bin/'
4
$ ./sidef -v
Copied!
Those commands will download and unpack the latest version of Sidef and will execute the bin/sidef script which will print out the current version of the language.
To execute a Sidef script, run:
1
$ ./sidef ../scripts/sierpinski_triangle.sf
Copied!
You can, also, add the following alias to your ~/.bashrc or ~/.zshrc:
1
alias sidef="/path/to/bin/sidef"
Copied!
Last modified 1yr ago
Copy link