Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joelbeedle/blang
- Owner: joelbeedle
- Created: 2024-12-11T23:13:06.000Z (27 days ago)
- Default Branch: main
- Last Pushed: 2024-12-11T23:16:18.000Z (27 days ago)
- Last Synced: 2024-12-12T00:20:30.701Z (27 days ago)
- Language: C
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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