diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-11-23 12:58:46 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-11-23 12:58:46 -0500 |
commit | 8fd930180e5d7a610117299bb9c48e28409d3106 (patch) | |
tree | 60ff00906cb23953335e719526bd3da8073fc6d5 /src/texec/eval.go | |
parent | 60dcc7c3c013a2492d8db1b04d28cb437921cced (diff) |
[EVAL] Stubcode v2
Diffstat (limited to 'src/texec/eval.go')
-rw-r--r-- | src/texec/eval.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/texec/eval.go b/src/texec/eval.go index b6c0020..93cbfdb 100644 --- a/src/texec/eval.go +++ b/src/texec/eval.go @@ -157,6 +157,32 @@ func equateType(a, b TType) bool { return true; } +// Generate a TType from a 'type' node +func getType(t tparse.Node) TType { + out := TType{} + + return out +} + +// Value generation + +func getStringLiteral(v tparse.Node) []byte { + +} + +func getCharLiteral(v tparse.Node) byte { + +} + +func getIntLiteral(v tparse.Node) int { + +} + +// Get a literal value from nodes. Must specify type of literal to generate. +func getLiteral(v tparse.Node, t TType) interface{} { + +} + //################# //# Runtime funcs # //################# |