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

Exported variables predefinition: replace prepare system with generic resume system

This commit is contained in:
Étienne Fildadut 2023-12-30 15:31:00 +01:00
parent e2ec105a4b
commit 3edf65dc2a
19 changed files with 155 additions and 136 deletions

View file

@ -0,0 +1,11 @@
--# run #--
--- text ---
| {}"" {}"42" {}"" |
--- error ---
./anselme/stdlib/closure.lua:15: no exported variable "y" defined in closure
↳ from test/tests/exported variable nested.ans:10:4 in call: f . "y"
↳ from test/tests/exported variable nested.ans:10:1 in text interpolation: | {f . "y"} |
↳ from test/tests/exported variable nested.ans:10:1 in translatable: | {f . "y"} |
↳ from ? in block: :f = ($() _)…
--# saved #--
{}

View file

@ -0,0 +1,11 @@
--# run #--
--- text ---
| {}"c=" {}"2" {}" (2)" |
| {}"l=" {}"*[1, 2, 3]" {}" (*[1,2,3])" |
--- text ---
| {}"c=" {}"5" {}" (5)" |
| {}"l=" {}"*[1, 5, 3]" {}" (*[1,5,3])" |
--- return ---
()
--# saved #--
{}