diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-12-03 18:25:03 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-12-03 18:25:03 -0500 |
commit | 1100ac865074effb3a4735c7449779f7193b7d0c (patch) | |
tree | 1a981ae33b1ba4a888c98640fed0e7fc74b18f57 /src/tparse | |
parent | 8fd930180e5d7a610117299bb9c48e28409d3106 (diff) |
General updates
+ Fill out eval a little and make sure that this builds.
~ CF kinda broken in AST. Gonna have to fix that. Upcoming Parser update.
Diffstat (limited to 'src/tparse')
-rw-r--r-- | src/tparse/tree-value.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tparse/tree-value.go b/src/tparse/tree-value.go index 609e9d7..c44cdb6 100644 --- a/src/tparse/tree-value.go +++ b/src/tparse/tree-value.go @@ -410,8 +410,15 @@ func parseType(tokens *[]Token, tok, max int, param bool) (Node, int) { tmp.Data = t tok++ } + out.Sub = append(out.Sub, tmp) + if param && (*tokens)[tok].Data == "`" { + tmp = Node{(*tokens)[tok], []Node{}} + out.Sub = append(out.Sub, tmp) + tok++ + } + return out, tok case KEYWORD: |