Skip to content

Commit

Permalink
doc: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
caelansar committed May 17, 2024
1 parent f894b2e commit e0e0a05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ build:
build_eval:
cargo build --release --bin caescript --features=build-binary

install:
cargo install --features=build-binary,vm --path .

install_eval:
cargo install --features=build-binary --path .

.PHONY: test
test:
cargo test --all-features
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ reading through [Writing An Interpreter In Go](https://interpreterbook.com/) and
### Build from source code
- Build release
```
$ cargo build --release --bin caescript
$ make install_eval
```
- Build release using the Compiler implementation
```
$ cargo build --release --features=vm --bin caescript
$ make install
```
- Running the REPL
```bash
$ ./caescript
$ caescript
```

- Running the Interpreter/Compiler
```bash
$ ./caescript [vm/eval] examples/hello.cae
$ caescript [vm/eval] examples/hello.cae
```

### With online playground
Expand Down

0 comments on commit e0e0a05

Please sign in to comment.