1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00

LuaFunction cleanup: replace by LuaCall

This commit is contained in:
Étienne Fildadut 2024-01-07 20:31:28 +01:00
parent 85d17e9519
commit 51ad18c5a4
22 changed files with 192 additions and 162 deletions

View file

@ -5,7 +5,7 @@
--- text ---
| {}"" {}"42" {}"" |
--- error ---
identifier "z" is undefined in branch 46991f07-7340-4104-9f35-c1fb62e95088
identifier "z" is undefined in branch 1c25ebb8-5027-4ccf-105b9-370d83e78fd7
↳ from test/tests/exported variable nested.ans:12:3 in identifier: z
↳ from test/tests/exported variable nested.ans:12:1 in text interpolation: | {z} |
↳ from ? in block: :f = ($() _)…

View file

@ -1,6 +1,6 @@
--# run #--
--- error ---
can't call overload iter: no function match arguments (42), possible functions were:
can't call overload iter: no function match arguments (value), possible functions were:
• $(table::is table) (from stdlib/for.ans:46:1):
type check failure for parameter table
• $(tuple::is sequence) (from stdlib/for.ans:37:1):

View file

@ -4,7 +4,7 @@
--- text ---
| {}"" {}"idk" {}" is esperanto" |
--- error ---
can't call overload a: no function match arguments (type(5, "nope")), possible functions were:
can't call overload a: no function match arguments (value), possible functions were:
• $(name::($(x) type(x) == t)) (from test/tests/function custom type dispatch error.ans:7:1):
type check failure for parameter name
• $(name::($(x) type(x) == t)) (from test/tests/function custom type dispatch error.ans:4:1):

View file

@ -2,14 +2,14 @@
--- text ---
| {}"a" |
--- text ---
| {}"c" |
--- text ---
| {}"b" |
--- text ---
| {}"c" |
--- text ---
| {}"a" |
--- text ---
| {}"b" |
| {}"c" |
--- return ---
()
--# saved #--
{"a.checkpoint":false, "a.run":2, "b.checkpoint":false, "b.run":2, "c.checkpoint":false, "c.run":1}
{"a.checkpoint":false, "a.run":1, "b.checkpoint":false, "b.run":1, "c.checkpoint":false, "c.run":3}

View file

@ -1,6 +1,6 @@
--# run #--
--- error ---
identifier "b" is undefined in branch 46991f07-7340-4104-9f35-c1fb62e95088
identifier "b" is undefined in branch 1c25ebb8-5027-4ccf-105b9-370d83e78fd7
↳ from test/tests/function scope wrong.ans:4:7 in identifier: b
↳ from test/tests/function scope wrong.ans:4:1 in text interpolation: | a: {b} |
↳ from ? in block: :a = ($() _)…

View file

@ -1,17 +1,23 @@
--# run #--
--- error ---
can't call overload _._: no function match arguments (overload([($(b) _), ($(x) _), ($() _)]), "a"), possible functions were:
• $(s::is script, k::is symbol) = val (from stdlib/script.ans:44:1):
can't call overload _._: no function match arguments (value, "a"), possible functions were:
• $(s::is script, k::is symbol) = val (from stdlib/script.ans:45:1):
expected 3 arguments, received 2
• $(s::is script, k::is string) = val (from stdlib/script.ans:42:1):
• $(s::is script, k::is string) = val (from stdlib/script.ans:43:1):
expected 3 arguments, received 2
• $(s::is script, k::is string) (from stdlib/script.ans:40:1):
• $(s::is script, k::is string) (from stdlib/script.ans:41:1):
type check failure for parameter s
• $(c::is function, s::is symbol) = v (from test/tests/function separate variable from variants.ans:10:4):
expected 3 arguments, received 2
• $(c::is function, s::is string) = v (from test/tests/function separate variable from variants.ans:10:4):
expected 3 arguments, received 2
• $(c::is function, s::is string) (from test/tests/function separate variable from variants.ans:10:4):
type check failure for parameter c
• $(c::is environment, s::is symbol) = v (from test/tests/function separate variable from variants.ans:10:4):
expected 3 arguments, received 2
• $(c::is environment, s::is string) = v (from test/tests/function separate variable from variants.ans:10:4):
expected 3 arguments, received 2
• $(c::is environment, s::is string) (from test/tests/function separate variable from variants.ans:10:4):
type check failure for parameter c
↳ from test/tests/function separate variable from variants.ans:10:4 in call: f . "a"
↳ from test/tests/function separate variable from variants.ans:10:1 in text interpolation: | {f . "a"} = 2 |

View file

@ -4,14 +4,14 @@
↳ from test/tests/merge nested mutable error bis.ans:14:7 in call: error("abort")
↳ from test/tests/merge nested mutable error bis.ans:3:1 in block: insert(a, b)…
↳ from test/tests/merge nested mutable error bis.ans:3:18 in call: _
↳ from stdlib/script.ans:30:6 in call: fn!
↳ from stdlib/script.ans:28:3 in block: resume target = ()…
↳ from stdlib/script.ans:28:7 in call: else!
↳ from stdlib/script.ans:24:2 in block: if(fn . "current checkpoint")…
↳ from stdlib/script.ans:24:9 in call: _
↳ from stdlib/script.ans:38:9 in call: value(s)!
↳ from stdlib/script.ans:37:1 in block: value(s)!
↳ from stdlib/script.ans:37:20 in call: _
↳ from stdlib/script.ans:31:6 in call: fn!
↳ from stdlib/script.ans:29:3 in block: resume target = ()…
↳ from stdlib/script.ans:29:7 in call: else!
↳ from stdlib/script.ans:25:2 in block: if(fn . "current checkpoint")…
↳ from stdlib/script.ans:25:9 in call: _
↳ from stdlib/script.ans:39:9 in call: value(s)!
↳ from stdlib/script.ans:38:1 in block: value(s)!
↳ from stdlib/script.ans:38:20 in call: _
↳ from test/tests/merge nested mutable error bis.ans:19:2 in call: f!
↳ from ? in block: :a = *[1]…
--# post run check #--

View file

@ -4,14 +4,14 @@
↳ from test/tests/merge nested mutable error.ans:14:7 in call: error("abort")
↳ from test/tests/merge nested mutable error.ans:3:1 in block: insert(a, b)…
↳ from test/tests/merge nested mutable error.ans:3:18 in call: _
↳ from stdlib/script.ans:30:6 in call: fn!
↳ from stdlib/script.ans:28:3 in block: resume target = ()…
↳ from stdlib/script.ans:28:7 in call: else!
↳ from stdlib/script.ans:24:2 in block: if(fn . "current checkpoint")…
↳ from stdlib/script.ans:24:9 in call: _
↳ from stdlib/script.ans:38:9 in call: value(s)!
↳ from stdlib/script.ans:37:1 in block: value(s)!
↳ from stdlib/script.ans:37:20 in call: _
↳ from stdlib/script.ans:31:6 in call: fn!
↳ from stdlib/script.ans:29:3 in block: resume target = ()…
↳ from stdlib/script.ans:29:7 in call: else!
↳ from stdlib/script.ans:25:2 in block: if(fn . "current checkpoint")…
↳ from stdlib/script.ans:25:9 in call: _
↳ from stdlib/script.ans:39:9 in call: value(s)!
↳ from stdlib/script.ans:38:1 in block: value(s)!
↳ from stdlib/script.ans:38:20 in call: _
↳ from test/tests/merge nested mutable error.ans:19:2 in call: f!
↳ from ? in block: :a = *[1]…
--# post run check #--

View file

@ -1,3 +1,4 @@
:z = 1
:x = $
2+z
x.:z = 3

View file

@ -1,4 +1,4 @@
:choice = 1
:@choice = 1
:$ jump button
1 # | A