1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-09-28 09:27:35 +00:00
bobbylisp/README.md

39 lines
669 B
Markdown
Raw Normal View History

2022-01-23 22:33:43 +00:00
# bobbylisp
2022-01-21 23:43:50 +00:00
another lisp dialect
```lisp
2022-01-23 22:33:43 +00:00
; example/s.blsp
2022-01-23 21:49:27 +00:00
(fun factorial (x)
2022-01-21 23:43:50 +00:00
(if (<= x 1)
1
(* x (factorial (- x 1)))))
(do
2022-01-23 21:49:27 +00:00
(print (factorial 7)))
2022-01-21 23:43:50 +00:00
```
2022-01-23 21:42:08 +00:00
Compliation flow:
```
2022-01-25 22:06:57 +00:00
Input(file) -> Parser -> Compile(Bytecode) -> Interpret
String SExprs Bytecode IO
|-> Compile
Assembly(?)
2022-01-23 21:42:08 +00:00
```
2022-01-24 20:08:41 +00:00
## Installation
```bash
$ make
```
or
```bsah
$ make debug
```
The binary will be installed in `~/bin/blspc` run it with:
```
$ blspc -h
```
## Progress:
2022-01-21 23:43:50 +00:00
- [X] Lexer & Parser
2022-01-22 21:36:13 +00:00
- [ ] Syntax checker & Type checker
2022-01-23 21:49:27 +00:00
- [ ] Interpreter
2022-01-24 20:08:41 +00:00
- [ ] Compiler