diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-09-06 08:49:19 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-09-06 08:49:19 +0200 |
| commit | 6dd78f44adf6fb032d0ecd9db813651b9524fcac (patch) | |
| tree | d1d4b3305db708614f147b2294b4b0e28336a55d /codegen/compiler_test.go | |
| parent | 4241593b42bffac2f8fcb63f1e88621fe025e360 (diff) | |
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.
Diffstat (limited to 'codegen/compiler_test.go')
| -rw-r--r-- | codegen/compiler_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 := "" |
