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:
parent
8562e8f18b
commit
bd93dc43dc
10 changed files with 82 additions and 5 deletions
3
test/tests/import/test.ans
Normal file
3
test/tests/import/test.ans
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
:@a = 1
|
||||
:b = 2
|
||||
:@c = 3
|
||||
3
test/tests/load file error.ans
Normal file
3
test/tests/load file error.ans
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
:e = load("test/tests/import/test.ans")
|
||||
|
||||
|{e.b}
|
||||
5
test/tests/load file import.ans
Normal file
5
test/tests/load file import.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
load("test/tests/import/test.ans")!import[:a, :c]
|
||||
|
||||
|{a}
|
||||
|
||||
|{c}
|
||||
5
test/tests/load file.ans
Normal file
5
test/tests/load file.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
:e = load("test/tests/import/test.ans")
|
||||
|
||||
|{e.a}
|
||||
|
||||
|{e.c}
|
||||
Loading…
Add table
Add a link
Reference in a new issue