Skip to content

Commit

Permalink
chore: updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirevo committed Oct 31, 2023
1 parent c23db27 commit 7ca1a91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ But, since the '-c' accepts multiple files, you might need to add the '--' argum
./target/release/som-interpreter-bc -c core-lib/Smalltalk -- core-lib/Examples/Hello.som
```

When using the bytecode interpreter, you have the option to dissasemble a given class' methods using `-d` (or `--disassemble`), like so:

```bash
./target/release/som-interpreter-bc -c core-lib/Smalltalk -d core-lib/Examples/Hello.som
# OR:
./target/release/som-interpreter-bc -c core-lib/Smalltalk core-lib/Examples -d Hello
# OR (for disassembling only specific methods):
./target/release/som-interpreter-bc -c core-lib/Smalltalk core-lib/Examples -d Hello first:method: second:method:
```

For other purposes, you can use '-h' (or '--help') to print the complete help message:

```bash
Expand Down
2 changes: 1 addition & 1 deletion som-interpreter-bc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ The SOM Interpreter

This is the interpreter for the Simple Object Machine.

It is AST-based, in that it works by recursively traversing and evaluating nodes from the Abstract Syntax Tree from **`som-core`**.
It is bytecode-based, in that it works by compiling nodes from the Abstract Syntax Tree from **`som-core`** into stack-based bytecode instructions and then executing them.

Resources are managed and tracked through reference-counting (using Rust's **`Rc`**/**`Weak`** types).

0 comments on commit 7ca1a91

Please sign in to comment.