From 6af4308f464e3821baca41a5bc5b4938481504b4 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 29 Oct 2021 23:12:42 -0400 Subject: [AST] General bugfixes We have emerged into the testing phase of the AST. Very basic statements seem to parse here, but not much else. --- src/tparse/tree-preproc.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tparse/tree-preproc.go') diff --git a/src/tparse/tree-preproc.go b/src/tparse/tree-preproc.go index d0f6637..a3e65f5 100644 --- a/src/tparse/tree-preproc.go +++ b/src/tparse/tree-preproc.go @@ -45,5 +45,7 @@ func parsePre (tokens *[]Token, tok, max int) (Node, int) { tmp := Node{Data: (*tokens)[tok], IsBlock: false} out.Sub = append(out.Sub, tmp) + tok++ + return out, tok } \ No newline at end of file -- cgit v1.2.3