https://github.com/jlkiri/beemo
Unremarkable Python-inspired programming language with remarkably good errors.
https://github.com/jlkiri/beemo
beemo language programming-language
Last synced: 6 months ago
JSON representation
Unremarkable Python-inspired programming language with remarkably good errors.
- Host: GitHub
- URL: https://github.com/jlkiri/beemo
- Owner: jlkiri
- Created: 2021-09-22T16:19:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-25T09:37:55.000Z (over 3 years ago)
- Last Synced: 2024-10-16T18:33:53.116Z (8 months ago)
- Topics: beemo, language, programming-language
- Language: Rust
- Homepage:
- Size: 451 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Beemo
Unremarkable Python-inspired programming language with remarkably good errors.
## Grammar
Read [GRAMMAR.md](GRAMMAR.md)
## Background
This language is an experiment in the design of an interpreter with extremely empathetic feedback. The goal is to become a language that is learnable solely from error messages.
## Feel
```
binary_search(array, num):
0 -> lo
8 -> hi
while lo <= hi:
lo + (hi - lo) / 2 -> mid
if array[mid] == num:
return mid
if array[mid] > num:
mid -> hi
if array[mid] < num:
mid + 1 -> lomain:
{1, 2, 3, 4, 5, 6, 7, 8, 9} -> array
print binary_search(array, 8)
```## Usage
* `git clone` this repository
* `cargo run -q examples/[example_name].bmo`## Error examples




## License
MIT