https://github.com/lhitori/maeel
The maeel programming language
https://github.com/lhitori/maeel
concatenative concatenative-language functional functional-programming interpreter language lexer programming-language stack stack-based stack-oriented tokenizer
Last synced: about 4 hours ago
JSON representation
The maeel programming language
- Host: GitHub
- URL: https://github.com/lhitori/maeel
- Owner: lhitori
- Created: 2022-11-13T10:19:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T10:54:28.000Z (over 1 year ago)
- Last Synced: 2026-07-15T06:34:29.645Z (about 4 hours ago)
- Topics: concatenative, concatenative-language, functional, functional-programming, interpreter, language, lexer, programming-language, stack, stack-based, stack-oriented, tokenizer
- Language: OCaml
- Homepage:
- Size: 701 KB
- Stars: 22
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
|\ /| /|
| \/ | ' |
| ;; | ___ ___ ___ | |
| ;' | ,-- \ / ,_\ / ,_\ | |
| ; '| \___/ \___/ \___/ | |
| ' | |
|' '|
```
# maeel
### a minimalistic stack based programming language.
The interpreter (including lexer) is made up of 500 lines of code (with default rustfmt options).
## Compile
`$ make test` (c.f. [tests.maeel](./stdlib/tests.maeel))
`$ make bench`
`$ make`
## Run program
`$ ./maeel program.maeel`
## Implemented in maeel
- Stack functions (drop, dup, rot, over, swap)
- Booleans functions (and, or, not)
- Conditions (ifelse, then) (s/o Turring)
- Loops (while, for)
- Lists definition (List ... end)