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 in an alpha state. Incomplete features are marked with 🚧. Breaking changes may occur.
- 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:
gitandNodeJS >= 16
Linux:
git clone https://github.com/tiabeast/bait
cd bait
./make.sh
sudo ./bait symlinkWindows:
git clone https://github.com/tiabeast/bait
cd bait
./make.bat
# In admin shell:
./bait.bat symlinkNow 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.