Brain is a simple interpreted programming language, built primarily to deeply learn Rust.
Brain is still in the early stages of development. Backwards compatibility is not yet an overt goal, so expect breaking changes. Brain is not intended to be used in production scenarios and is not optimized for such. Use only if you're willing to work within these contstraints.
let x = [1, 2, 3];
for item in collection {
print(item * 2);
}
let y = { 'a': 1, 'b': 2 };
print(y.a);
More samples can be found in the samples/
folder.
Usage: brain [filename] [flags]
Flags:
--help Prints the usage text
--debug Verbosely prints the language tokens & AST
--version Returns the version of Brain
- Capable in use
- Simplicity in design
- Ergonomic to use
- Extensible to develop
Brain is free, open sourced, and explicitly seeks to have permissive license. All code is dual-licensed under MIT or Apache License 2, whichever you choose. The express goal is to allow you to choose whichever License matches your requirements.