Slip is a Lisp dialect built to learn more about the implementation of programming languages and for the fun of it.
It is implemented from scratch, without using any dependencies appart from the standard library.
At the moment there are no binary releases for the language. To try it yourself you would need to build it from source by either cloning this repository or by executing go get
:
$ go get github.com/dbrabera/slip
Once you have slip command avaliable, you can start the REPL and run expressions by executing it without arguments:
$ slip
Slip f29f33b
slip:1:> (println "It's ALIVE!")
It's ALIVE!
nil
slip:2:>
Alternatively you can execute pass the path for a slip .sp
file to execute a script:
$ cat exmaples/hello.sp
(println "Hello, world!")
$ slip examples/hello.sp
Hello, world!
An annotated tour of the language can be found at examples/tour.sp. This script follows the style of the Learn X in Y minutes docs and is intented to showcase the implemented features.
More examples can be found in the same directory.
- Go (1.14 or later)
- Golangci-lint (1.27 or later)
To build the source code do:
$ make build
To lint the source code do:
$ make lint
To run the tests do:
$ make test
MIT