From ee283aba92757f3661e6bb1cc746e8bb5efff884 Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Tue, 12 Mar 2024 15:23:18 +0100 Subject: Fix: small README fixes and throw an error if expression not supported. Signed-off-by: Antonio Navarro Perez --- vm/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/README.md b/vm/README.md index 92b1ac8..ee550a2 100644 --- a/vm/README.md +++ b/vm/README.md @@ -28,7 +28,7 @@ Structurally, the vm implements logical and arithmetic operators, condional jumps for `if`, `for` and `switch` control flow, and function call, return and frame management. -the memory state of the vm is a slice of Go interfaces (`[]any`). +the memory state of the vm is a slice of (`[]reflect.Value`). The whole vm is coded in a single function of 80 lines with no dependencies. The size will grow as we add missing instructions, but the -- cgit v1.2.3 From a7f99d19978e5bf337be3e778f5376f346f69c4a Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Wed, 13 Mar 2024 15:56:08 +0100 Subject: Update vm/README.md Co-authored-by: Marc Vertes --- vm/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/README.md b/vm/README.md index ee550a2..127da45 100644 --- a/vm/README.md +++ b/vm/README.md @@ -28,7 +28,7 @@ Structurally, the vm implements logical and arithmetic operators, condional jumps for `if`, `for` and `switch` control flow, and function call, return and frame management. -the memory state of the vm is a slice of (`[]reflect.Value`). +the memory state of the vm is a slice of (`[]Value`), where `Value` is similar to a `reflect.Value`, containing pointers to value data and type. The whole vm is coded in a single function of 80 lines with no dependencies. The size will grow as we add missing instructions, but the -- cgit v1.2.3