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. --- codegen/compiler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'codegen/compiler_test.go') diff --git a/codegen/compiler_test.go b/codegen/compiler_test.go index fbe8bb2..5c7e9d3 100644 --- a/codegen/compiler_test.go +++ b/codegen/compiler_test.go @@ -19,7 +19,7 @@ func TestCodeGen(t *testing.T) { c.AddSym(fmt.Println, "println") n := &parser.Node{} var err error - if n.Child, err = golang.GoParser.Parse(test.src); err != nil { + if n.Child, err = golang.GoParser.Parse(test.src, n); err != nil { t.Error(err) } errStr := "" -- cgit v1.2.3