From 6dd78f44adf6fb032d0ecd9db813651b9524fcac Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 6 Sep 2023 08:49:19 +0200 Subject: chore: refactor some APIs The scanner returns a slice of pointers to tokens instead of a slice of tokens. The parser now pass the initial node context. --- vm0/vm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm0/vm_test.go') diff --git a/vm0/vm_test.go b/vm0/vm_test.go index dc0829b..a4a24e6 100644 --- a/vm0/vm_test.go +++ b/vm0/vm_test.go @@ -14,7 +14,7 @@ func TestEval(t *testing.T) { //n, _ := i.Parse("println(2*5)") //n, _ := i.Parse(`a := 2 + 5`) src := `a := 2` - nodes, err := i.Parse(src) + nodes, err := i.Parse(src, nil) if err != nil { t.Errorf("error %v", err) } -- cgit v1.2.3