Skip to content

Commit efaa936

Browse files
committed
add echo example
1 parent b71eb2f commit efaa936

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/echo.cal

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
include "cores/select.cal"
2+
include "std/io.cal"
3+
include "std/args.cal"
4+
5+
let cell i
6+
1 i !
7+
let Array arg
8+
9+
while i @ get_args_length < do
10+
i @ arg get_arg
11+
arg printstr
12+
' ' printch
13+
i @ 1 + i !
14+
end
15+
16+
new_line

0 commit comments

Comments
 (0)