Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/joelbeedle/blang

Bytecode VM for custom language
https://github.com/joelbeedle/blang

Last synced: 6 days ago
JSON representation

Bytecode VM for custom language

Awesome Lists containing this project

README

        

# blang

`blang`, a language inspired by `lox`

Implemented using VM and bytecode interpreter written in C.

## Usage

- `git clone https://github.com/joelbeedle/blang.git`
- `cd blang`
- `make`
- `./build/blang `

## Examples

```go
func fib(n) {
if (n < 2) return n;
return fib(n - 2) + fib(n - 1);
}
```

```go
func makeCounter() {
let count = 0;
return fun() {
count = count + 1;
return count;
};
}
```

yes, blang stands for beedlelanguage