Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mystpi/bella

🐶 Bella ⌁ A simple functional programming language ⌁ Written in Gleam!
https://github.com/mystpi/bella

functional-programming gleam interpreter lexer nodejs parser programming-language

Last synced: 2 days ago
JSON representation

🐶 Bella ⌁ A simple functional programming language ⌁ Written in Gleam!

Awesome Lists containing this project

README

        

# Bella programming language

![Bella language logo](assets/Bella-language.png)

Bella is a simple functional programming language, written in [Gleam](https://gleam.run). Still very much a work-in-progress. 🚧

## Using Bella

[Download](https://github.com/MystPi/bella/releases) the appropriate executable for your system and add it to PATH, then you can:

- Try out the [examples](/examples/)
```sh
bella ./examples/hello_world.bella
```
- Create a project
```sh
bella create my_project
cd my_project
bella run
```

## Developing

You will need:

- Gleam
- Deno _(This is Gleam's target runtime)_
- This repo

```sh
gleam run ./examples/hello_world.bella
```
You can also compile an executable:

```sh
# Build
gleam clean && gleam build

# Compile
deno compile -o ./build/bella --unstable --allow-all ./build/dev/javascript/bella/main.ts

# Run
./build/bella ./examples/countdown.bella
```