Skip to content

Commit

Permalink
Merge pull request #145 from nbuilding/bug-fix
Browse files Browse the repository at this point in the history
Fix #142 and #141
  • Loading branch information
SheepTester authored Apr 29, 2021
2 parents 309cb3b + 330a7e9 commit f1ca1e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/native_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def add_funcs(global_scope):
"split",
[("splitter", "char"), ("string", "str")],
n_list_type.with_typevars(["str"]),
lambda string, splitter: string.split(splitter),
lambda splitter, string: string.split(splitter),
)
global_scope.add_native_function(
"strip", [("string", "str")], "str", lambda string: string.strip()
Expand Down
1 change: 1 addition & 0 deletions python/operation_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
("str", "str", "str"),
("char", "char", "str"),
("str", "char", "str"),
("char", "str", "str"),
(n_list_type, n_list_type, n_list_type),
],
"SUBTRACT": [("int", "int", "int"), ("float", "float", "float")],
Expand Down
8 changes: 3 additions & 5 deletions python/run.n
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
if false {
print("eee")
} if true {
print("eeee")
}
print("eee" + \n)
print(\n + "eee")
print(split(\{.}, "this.is.a.test"))

0 comments on commit f1ca1e8

Please sign in to comment.