An immutability-first, functional scripting language with a friendly syntax and interpreter written in Rust!
You can run Skiff in the Skiff web editor.
If you prefer to use your own text editor, you can install Skiff from crates.io and run it from the command line
bash
cargo install skiff
skiff <filename> # make sure installed crate binaries are in your PATH
Full docs are a work in progress. To get an idea of what the features and syntax look like, you can look at the language tour test file.
Clone the repo to work on Skiff. You can run a local development version using
bash
cargo run -- <filename>
For example:
bash
cargo run -- tests/files/success/plus_and_times_precedence.boat
Language Features:
| | Tree Walk Interpreter | Bytecode Interpreter | | ------------------------ | --------------------- | -------------------- | | Arithmetic | ✓ | | | Equality Operators | ✓ | | | Conditionals | ✓ | | | Functions | ✓ | | | Recursion | ✓ | | | Lambdas | ✓ | | | Let binding | ✓ | | | Improved Error Reporting | ✓ | | | Type Annotations | ✓ | | | Type Inference | ✓ | | | Algebraic Datatypes | ✓ | | | Pattern Matching | ✓ | | | Exhaustiveness Checking | ✓ | | | Call Stack Traces | ✓ | | | Parameterized Types | | | | Strings | | | | File Operations | | | | Testing Constructs | | |
Miscellaneous: