Simple compiled language for building reliable software.
This repository contains the compiler, standard library and documentation for Bait.
fun main() {
println('hello world')
}
Note: Bait is under heavy development. Incomplete features are marked with ๐ง. While it is quite stable already, breaking changes might happen.
- Clean, simple and consistent syntax
- Type and memory safety with immutability by default
- JavaScript backend (NodeJS, ๐ง Web)
- ๐ง C backend
- Cross-platform support (Linux, Windows)
Right now Bait has to be compiled from source. Precompiled binaries will be available in the future.
Required dependencies:
git
andNodeJS >= 16
Linux:
git clone https://github.com/bait-lang/bait
cd bait
./make.sh
sudo ./bait symlink
Windows:
git clone https://github.com/bait-lang/bait
cd bait
./make.bat
# In admin shell:
./bait.bat symlink
Now you should have Bait compiled to JS at <repo>/bait.js
.
Due to the symlinked wrapper script, the compiler can be used like bait run examples/hello_world.bt
.
To update Bait to the latest commit, run bait up
.
Bait is licensed under the Mozilla Public License (MPL-2.0). See LICENSE for details.