Skip to content

Commit 7ca1a91

Browse files
committed
chore: updated README.md
1 parent c23db27 commit 7ca1a91

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ But, since the '-c' accepts multiple files, you might need to add the '--' argum
8282
./target/release/som-interpreter-bc -c core-lib/Smalltalk -- core-lib/Examples/Hello.som
8383
```
8484

85+
When using the bytecode interpreter, you have the option to dissasemble a given class' methods using `-d` (or `--disassemble`), like so:
86+
87+
```bash
88+
./target/release/som-interpreter-bc -c core-lib/Smalltalk -d core-lib/Examples/Hello.som
89+
# OR:
90+
./target/release/som-interpreter-bc -c core-lib/Smalltalk core-lib/Examples -d Hello
91+
# OR (for disassembling only specific methods):
92+
./target/release/som-interpreter-bc -c core-lib/Smalltalk core-lib/Examples -d Hello first:method: second:method:
93+
```
94+
8595
For other purposes, you can use '-h' (or '--help') to print the complete help message:
8696

8797
```bash

som-interpreter-bc/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ The SOM Interpreter
33

44
This is the interpreter for the Simple Object Machine.
55

6-
It is AST-based, in that it works by recursively traversing and evaluating nodes from the Abstract Syntax Tree from **`som-core`**.
6+
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.
77

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

0 commit comments

Comments
 (0)