changed table types to support implementing 'let', also integrated stdlib into repl
This commit is contained in:
parent
b01415d786
commit
9c25ac21f9
5 changed files with 16 additions and 58 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue