https://github.com/tsoding/bada
Simple Programming Language that compiles to BEAM bytecode
https://github.com/tsoding/bada
Last synced: 8 months ago
JSON representation
Simple Programming Language that compiles to BEAM bytecode
- Host: GitHub
- URL: https://github.com/tsoding/bada
- Owner: tsoding
- Created: 2023-12-10T21:35:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-17T17:22:52.000Z (almost 2 years ago)
- Last Synced: 2025-04-29T12:15:39.806Z (8 months ago)
- Language: Rust
- Size: 60.5 KB
- Stars: 70
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bada
Simple Programming Language that compiles to BEAM bytecode.
## Quick Start
Install dependencies:
- [Rust](https://www.rust-lang.org/)
- [Erlang](https://www.erlang.org/)
Compile the Compiler (we don't use Cargo because we don't have any thirdparty dependencies yet):
```console
$ rustc ./src/bada.rs
```
Compile an example using the Compiler:
```console
$ ./bada ./examples/bada.boom
```
Load the example into Erlang environment:
```console
$ erl
> code:add_path("./examples/").
> code:load_file(bada).
> bada:hello().
> bada:world().
```
To reload the Example module:
```console
> code:purge(bada), code:load_file(bada).
```