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

Add stdlib functions from anselme v1

This commit is contained in:
Étienne Fildadut 2024-01-04 20:22:18 +01:00
parent 581c60048d
commit dac5b74fa6
30 changed files with 272 additions and 14 deletions

7
test/results/error.ans Normal file
View file

@ -0,0 +1,7 @@
--# run #--
--- error ---
nope
↳ from test/tests/error.ans:1:6 in call: error("nope")
↳ from ? in block: error("nope")
--# saved #--
{}

View file

@ -0,0 +1,13 @@
--# run #--
--- text ---
| {}"" {}"3" {}"" |
--- text ---
| {}"" {}"4" {}"" |
--- text ---
| {}"" {}"3" {}"" |
--- text ---
| {}"" {}"3.142" {}"" |
--- return ---
()
--# saved #--
{}

View file

@ -0,0 +1,9 @@
--# run #--
--- text ---
| {}"" {}"3" {}"" |
--- text ---
| {}"" {}"3" {}"" |
--- return ---
()
--# saved #--
{}

View file

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

View file

@ -0,0 +1,9 @@
--# run #--
--- text ---
| {}"" {}"4" {}"" |
--- text ---
| {}"" {}"4" {}"" |
--- return ---
()
--# saved #--
{}

View file

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

View file

@ -0,0 +1,9 @@
--# run #--
--- text ---
| {}"" {}"foo" {}"" |
--- text ---
| {}"" {}"barr" {}"" |
--- return ---
()
--# saved #--
{}

View file

@ -0,0 +1,7 @@
--# run #--
--- text ---
| {}"" {}"5" {}"" |
--- return ---
()
--# saved #--
{}

View file

@ -0,0 +1,7 @@
--# run #--
--- text ---
| {"a":"b"}"hello" {"b":"c"}"world and " {"b":"c", "x":"y"}"friends" {"b":"c"}"" |
--- return ---
()
--# saved #--
{}