diff options
| author | Bobby <[email protected]> | 2024-04-10 20:48:41 +0000 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-04-10 20:48:41 +0000 |
| commit | 22c0cc7531edc6eba384d6f53f8f64f6a5616296 (patch) | |
| tree | f9a0903ad3d7e162f918a685f27eed41774450db /evaluator | |
| parent | ca46690f9166681e4b32af90e28fb215c12f76c0 (diff) | |
| download | mana-22c0cc7531edc6eba384d6f53f8f64f6a5616296.tar.xz mana-22c0cc7531edc6eba384d6f53f8f64f6a5616296.zip | |
Diffstat (limited to 'evaluator')
| -rw-r--r-- | evaluator/builtins.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/evaluator/builtins.go b/evaluator/builtins.go index 1c7a312..a37a720 100644 --- a/evaluator/builtins.go +++ b/evaluator/builtins.go @@ -108,4 +108,13 @@ var builtins = map[string]*object.Builtin{ return &object.Array{Elements: newElements} }, }, + "puts": { + Fn: func(args ...object.Object) object.Object { + for _, arg := range args { + println(arg.Inspect()) + } + + return NULL + }, + }, } |
