clean up builtins
Some checks failed
Build / build (push) Failing after 1m29s
Test / build (push) Failing after 12m12s

This commit is contained in:
Chuck Smith
2024-03-18 17:08:36 -04:00
parent 5890a80daf
commit c59ce311b0
6 changed files with 191 additions and 211 deletions

View File

@@ -42,8 +42,8 @@ func New() *Compiler {
symbolTable := NewSymbolTable()
for i, v := range object.Builtins {
symbolTable.DefineBuiltin(i, v.Name)
for i, builtin := range object.BuiltinsIndex {
symbolTable.DefineBuiltin(i, builtin.Name)
}
return &Compiler{