A new programming language with semantics borrowed from the Swahili language to help teach programming concepts to native Swahili-speaking students.
Swahili is built on Node. To get started, you can install Swahili, or follow the instructions to run without installing.
npm install -g swahili-lang
To start the REPL, just run swahili
in your terminal.
swahili
Try things out! Here's a good command to get you started:
> andika("Jambo Dunia! Hello, World!")
You can pass in a file path to be executed when you run the swahili
command in your terminal:
swahili ./examples/jambo.swh
To see more options for the swahili
command run
swahili -h
If you'd like to run without installing, simply use:
npx swahili-lang [filename]
To enable syntax highlighting for your Swahili programs in VS Code (more coming soon!), get this VS Code extension.
- Introduction
- Grammar and types
- Control flow and error handling
- Loops and iterations
- Functions
- Expressions and operators
- Numbers and dates