Bait Programming Language
Simple compiled language for building reliable software.
This repository contains the compiler, standard library and documentation for Bait.
fun main() {
println('hello world')
}
Key Features
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)
Documentation
Installation
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/tiabeast/bait
cd bait
./make.sh
sudo ./bait symlink
Windows:
git clone https://github.com/tiabeast/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
.
Upgrading to the latest version
To update Bait to the latest commit, run bait up
.
License
Bait is licensed under the Mozilla Public License (MPL-2.0). See LICENSE for details.