Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.52 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.52 KB

Brain logo

Brain

Tests MIT/Apache 2.0

What is Brain?

Brain is a simple interpreted programming language, built primarily to deeply learn Rust.

WARNING

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.

Example

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

Usage: brain [filename] [flags]


Flags:
    --help      Prints the usage text
    --debug     Verbosely prints the language tokens & AST
    --version   Returns the version of Brain

Design Goals

  • Capable in use
  • Simplicity in design
  • Ergonomic to use
  • Extensible to develop

License

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.