From 851c793da43be9e4d3319afe440d603c85834045 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 31 Aug 2023 17:53:54 +0200 Subject: 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 --- vm0/vm_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm0/vm_test.go') 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) } } -- cgit v1.2.3