diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-08-31 17:53:54 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-08-31 17:53:54 +0200 |
| commit | 851c793da43be9e4d3319afe440d603c85834045 (patch) | |
| tree | fd4b3d3812f5743213b5849858c459c8196dbf7f /vm0/vm_test.go | |
| parent | 0f4bfe6e70263fbeb580014b62632f403b29b414 (diff) | |
codegen: fix interpreter re-entrance
So multiple successive incremental Evals function correctly.
Also improve the following:
- Apply the same Eval API to vm0 and vm1
- parser: dot diagram display is now synchronous
- codegen: outsource complex code generation for readability
- vm1: Pop take the number of values to pop as operand
Diffstat (limited to 'vm0/vm_test.go')
| -rw-r--r-- | vm0/vm_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm0/vm_test.go b/vm0/vm_test.go index 0e8896b..dc0829b 100644 --- a/vm0/vm_test.go +++ b/vm0/vm_test.go @@ -20,7 +20,7 @@ func TestEval(t *testing.T) { } i.Adot(nodes, os.Getenv("DOT")) for _, n := range nodes { - v, err := i.Run(n, "") - t.Log(v, err) + err := i.Run(n, "") + t.Log(err) } } |
