diff options
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 # //################# |