Initial commit (v0.1.0)
A small language that is easy to learn and that helps you wrote bug-free programs.
The project was introduced at FOSDEM 2024, you can find the slides here.
// A quick taste of the Bee syntax:
{ Flower = type ("🌸" | "🌺" | "🌼")
{ fmt = args => "${args.animal} is ${args.mood}!"
return x => fmt { animal = "🐝"; mood = if Flower x "happy" else "sad" }
} (read "/dev/stdin") |> print
}
Check out the examples
folder, for more code snippets.
Bee currently compile to JavaScript but aims to suitable for system programming!
One core design idea to keep the language small is to define most of construct in the standard library.
Get a Rust toolchain working on your computer, and then cargo install --git https://git.sr.ht/~yvan-sraka/bee-lang
to build from source.
Check out the Syntax Highlighting Guide to set-up your code editor. You can also find an example on how to set-up Webpack to work with Bee.
grammar.js
with TreeSitter;node
in your PATH
);@debug
, @release
or user-defined);match
keyword);while
loops);