aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-01-05 16:54:50 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-01-05 16:54:50 +0300
commit94f089316ffbf2e2e74b0257355f7c390ff5262b (patch)
treeeddfe1a89e2cede726ab44a6fff356492f54f1f5 /examples
parente96facabd92d3eb61a4f97dfc3436a34dae4812d (diff)
downloadcsx-94f089316ffbf2e2e74b0257355f7c390ff5262b.tar
csx-94f089316ffbf2e2e74b0257355f7c390ff5262b.tar.xz
csx-94f089316ffbf2e2e74b0257355f7c390ff5262b.zip
Added sx.
Diffstat (limited to 'examples')
-rw-r--r--examples/generated.csx16
1 files changed, 4 insertions, 12 deletions
diff --git a/examples/generated.csx b/examples/generated.csx
index 4c405c4..f6eac72 100644
--- a/examples/generated.csx
+++ b/examples/generated.csx
@@ -9,26 +9,18 @@
]
]
]]]
-[set map [fn [f l] [if [no l] []
- [pair [f [head l]] [map f [tail l]]]
-]]]
+[set map [fn [f l] [if l [pair [f [head l]] [map f [tail l]]]]]]
[set id [fn args args]]
-[set outstr [fn [str] [if str
- [do [out [head str]] [outstr [tail str]]]
- []
-]]]
+[set outstr [fn [str] [if str [do [out [head str]] [outstr [tail str]]]]]]
[set newline [fn [] [out 10]]]
[set instr [fn []
[set c [in]]
- [if [same c 10]
- []
- [pair c [instr]]
- ]
+ [if [no [same c 10]] [pair c [instr]]]
]]
[outstr "-= loaded =-"]
[newline]
-[outstr "Hello, I am Conrad S. Xylander. What is your name?"]
+[outstr "Hello, I am Casey Shawn Exton. What is your name?"]
[newline]
[outstr "> "]
[set name [instr]]