Skip to content

Commit 43f2b23

Browse files
authored
Merge pull request #65 from AvicennaJr/develop
Develop
2 parents ede224c + 8a17c6d commit 43f2b23

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

evaluator/builtins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var builtins = map[string]*object.Builtin{
1515
Fn: func(args ...object.Object) object.Object {
1616

1717
if len(args) > 1 {
18-
return newError("Samahani, hii function inapokea hoja 0 au 1, wewe umeweka %d", len(args))
18+
return newError("Samahani, kiendesha hiki kinapokea hoja 0 au 1, wewe umeweka %d", len(args))
1919
}
2020

2121
if len(args) > 0 && args[0].Type() != object.STRING_OBJ {

evaluator/evaluator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,15 +288,15 @@ func applyFunction(fn object.Object, args []object.Object, line int) object.Obje
288288
obj.Env.Set("@", obj)
289289
node, ok := fn.Scope.Get("andaa")
290290
if !ok {
291-
return newError("Hamna andaa function")
291+
return newError("Hamna andaa kiendesha")
292292
}
293293
node.(*object.Function).Env.Set("@", obj)
294294
applyFunction(node, args, fn.Name.Token.Line)
295295
node.(*object.Function).Env.Del("@")
296296
return obj
297297
default:
298298
if fn != nil {
299-
return newError("Mstari %d: Hii sio function: %s", line, fn.Type())
299+
return newError("Mstari %d: Hiki sio kiendesha: %s", line, fn.Type())
300300
} else {
301301
return newError("Bro how did you even get here??? Contact language maker asap!")
302302
}

object/array.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (a *Array) Method(method string, args []Object) Object {
5858
case "tafuta":
5959
return a.find(args)
6060
default:
61-
return newError("Samahani, function hii haitumiki na Strings (Neno)")
61+
return newError("Samahani, kiendesha hiki hakitumiki na tungo (Neno)")
6262
}
6363
}
6464

object/strings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (s *String) Method(method string, args []Object) Object {
4040
case "gawa":
4141
return s.split(args)
4242
default:
43-
return newError("Samahani, function hii haitumiki na Strings (Neno)")
43+
return newError("Samahani, kiendesha hiki hakitumiki na tungo (Neno)")
4444
}
4545
}
4646

0 commit comments

Comments
 (0)