mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
docs: update readme
This commit is contained in:
parent
598ef08b5d
commit
25128092e1
14
README.md
14
README.md
|
@ -14,10 +14,10 @@ another lisp dialect
|
||||||
|
|
||||||
Compliation flow:
|
Compliation flow:
|
||||||
```
|
```
|
||||||
Input(file) -> Parser -> Compile(Bytecode) -> Interpret(blvm)
|
Input(file) -> Parser -> Compile(Bytecode) -> Interpret
|
||||||
String SExprs Bytecode IO
|
String SExprs Bytecode IO
|
||||||
|-> Compile
|
|-> Compile
|
||||||
Assembly(?)
|
Assembly(?)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -34,9 +34,11 @@ $ blspc -h
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
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.
|
||||||
```bash
|
```bash
|
||||||
$ blspc ./example/hello.blsp
|
$ blspc ./example/hello.blsp
|
||||||
$ blvm hello.bbb
|
$ blspc ./hello.bsm
|
||||||
Hello, World!
|
Hello, World!
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -44,4 +46,4 @@ Hello, World!
|
||||||
- [X] Lexer & Parser
|
- [X] Lexer & Parser
|
||||||
- [ ] Syntax checker & Type checker
|
- [ ] Syntax checker & Type checker
|
||||||
- [ ] Interpreter
|
- [ ] Interpreter
|
||||||
- [ ] Compiler
|
- [X] Compiler
|
||||||
|
|
Loading…
Reference in a new issue