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

Add file loading functions to stdlib

This commit is contained in:
Étienne Fildadut 2024-01-08 19:28:14 +01:00
parent 8562e8f18b
commit bd93dc43dc
10 changed files with 82 additions and 5 deletions

View file

@ -0,0 +1,3 @@
:@a = 1
:b = 2
:@c = 3

View file

@ -0,0 +1,3 @@
:e = load("test/tests/import/test.ans")
|{e.b}

View file

@ -0,0 +1,5 @@
load("test/tests/import/test.ans")!import[:a, :c]
|{a}
|{c}

5
test/tests/load file.ans Normal file
View file

@ -0,0 +1,5 @@
:e = load("test/tests/import/test.ans")
|{e.a}
|{e.c}