2022-01-23 22:33:43 +00:00
|
|
|
# bobbylisp
|
2022-01-21 23:43:50 +00:00
|
|
|
another lisp dialect
|
2022-01-26 03:54:07 +00:00
|
|
|
> Also available on https://git.ablecorp.us/azur/bobbylisp
|
2022-01-21 23:43:50 +00:00
|
|
|
|
2022-01-24 20:08:41 +00:00
|
|
|
## Installation
|
|
|
|
```bash
|
|
|
|
$ make
|
|
|
|
```
|
|
|
|
or
|
2022-01-26 03:54:07 +00:00
|
|
|
```bash
|
2022-01-24 20:08:41 +00:00
|
|
|
$ make debug
|
|
|
|
```
|
|
|
|
The binary will be installed in `~/bin/blspc` run it with:
|
2022-01-26 03:54:07 +00:00
|
|
|
```bash
|
2022-01-24 20:08:41 +00:00
|
|
|
$ blspc -h
|
|
|
|
```
|
|
|
|
|
2022-01-26 03:54:07 +00:00
|
|
|
### Example
|
2022-01-26 08:41:31 +00:00
|
|
|
If no `-r` or `-c` specified. It will check for file extension instead.
|
|
|
|
If found `.blsp`, it will compile, if found `.bsm` it will run vm and interpret the bytecode.
|
2022-01-26 03:54:07 +00:00
|
|
|
```bash
|
|
|
|
$ blspc ./example/hello.blsp
|
2022-01-26 08:41:31 +00:00
|
|
|
$ blspc ./hello.bsm
|
2022-01-26 03:54:07 +00:00
|
|
|
Hello, World!
|
|
|
|
```
|
|
|
|
|
2022-01-24 20:08:41 +00:00
|
|
|
## 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-26 08:41:31 +00:00
|
|
|
- [X] Compiler
|