docs: update readme

replace/7746dba3cc6b3860afe1faf69e86ed84ee46988d
Natapat Samutpong 2022-01-26 15:41:31 +07:00
parent 598ef08b5d
commit 25128092e1
1 changed files with 8 additions and 6 deletions

View File

@ -14,10 +14,10 @@ another lisp dialect
Compliation flow:
```
Input(file) -> Parser -> Compile(Bytecode) -> Interpret(blvm)
String SExprs Bytecode IO
|-> Compile
Assembly(?)
Input(file) -> Parser -> Compile(Bytecode) -> Interpret
String SExprs Bytecode IO
|-> Compile
Assembly(?)
```
## Installation
@ -34,9 +34,11 @@ $ blspc -h
```
### 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
$ blspc ./example/hello.blsp
$ blvm hello.bbb
$ blspc ./hello.bsm
Hello, World!
```
@ -44,4 +46,4 @@ Hello, World!
- [X] Lexer & Parser
- [ ] Syntax checker & Type checker
- [ ] Interpreter
- [ ] Compiler
- [X] Compiler