diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-10-29 23:12:42 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-10-29 23:12:42 -0400 |
commit | 6af4308f464e3821baca41a5bc5b4938481504b4 (patch) | |
tree | f13eac68640fea9142ed17e3a71d0afdda43753c /src/tparse/tree-preproc.go | |
parent | a7b7ecec0cafe6399151669860b3c0d521a31828 (diff) |
[AST] General bugfixes
We have emerged into the testing phase of the AST.
Very basic statements seem to parse here, but not much else.
Diffstat (limited to 'src/tparse/tree-preproc.go')
-rw-r--r-- | src/tparse/tree-preproc.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |