https://github.com/raventid/bebe
My own LISP dialect, crafted with love.
https://github.com/raventid/bebe
interpreted-programming-language language lisp-dialect
Last synced: 10 months ago
JSON representation
My own LISP dialect, crafted with love.
- Host: GitHub
- URL: https://github.com/raventid/bebe
- Owner: raventid
- Created: 2015-12-10T21:24:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-20T17:26:52.000Z (almost 9 years ago)
- Last Synced: 2024-07-31T03:19:56.672Z (over 1 year ago)
- Topics: interpreted-programming-language, language, lisp-dialect
- Language: C
- Homepage: http://raventid.github.io/bebe/
- Size: 104 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bebe
My own LISP dialect, crafted with love.
Inspired by Scheme and SICP. Simple, fast, extensible, it requires less code to complete simple task or computation.
Now language support only basic arithmetic operations.
See wiki for installation instructions.
Enjoy!
## Installation
At the moment Bebe available and well tested at Debian based linux machines.
To compile Bebe from source you have to clone this repo, and then run make, from project folder.
If you are not sure how to do it, well, on Debian or Ubuntu try:
```
$ cd /path/to/downloaded/file/bebe
$ ./make
```
After compilation you should run bebe repl as ./repl from source folder or you might create a link to this file and put it into /usr/bin/
Good luck!
## Operators
``` clojure
+ 4 5 #=> 9
- 2 1 #=> 1
* 2 2 #=> 4
/ 4 2 #=> 2
% 10 6 #=> 4
^ 2 3 #=> 8
```
You can easily nest any number of operations using parenthesis. And pay some attention to the fact that first action do not require you to use parenthesis like ``` + 3 4 ``` and ``` (+ 3 4) ``` is wrong, that makes language less nested.
``` clojure
+ (/
(/ 4 2)
(+ 1 1)
)
(-
(/ 8 2)
(- 3 2)
)
```