changed table types to support implementing 'let', also integrated stdlib into repl

This commit is contained in:
Aidan 2020-06-21 12:46:25 -07:00
parent b01415d786
commit 9c25ac21f9
No known key found for this signature in database
GPG key ID: 327711E983899316
5 changed files with 16 additions and 58 deletions

View file

@ -25,6 +25,7 @@ import (
"strconv"
"git.callpipe.com/aidan/shs/ast"
"git.callpipe.com/aidan/shs/log"
"git.callpipe.com/aidan/shs/stdlib"
)
const (
@ -53,6 +54,9 @@ func main() {
var vars ast.VarTable
var funcs ast.FuncTable
funcs = stdlib.GenFuncTable()
vars = &map[string]*ast.Token{}
useHist := false
var histFile *os.File
var err error