Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsoding/bada
Simple Programming Language that compiles to BEAM bytecode
https://github.com/tsoding/bada
Last synced: 8 days 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 (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-17T17:22:52.000Z (9 months ago)
- Last Synced: 2024-08-01T15:35:54.289Z (3 months ago)
- Language: Rust
- Size: 60.5 KB
- Stars: 67
- Watchers: 2
- Forks: 5
- 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).
```