Skip to content

Commit

Permalink
add echo example
Browse files Browse the repository at this point in the history
  • Loading branch information
yeti0904 committed Jun 16, 2024
1 parent b71eb2f commit efaa936
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/echo.cal
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
include "cores/select.cal"
include "std/io.cal"
include "std/args.cal"

let cell i
1 i !
let Array arg

while i @ get_args_length < do
i @ arg get_arg
arg printstr
' ' printch
i @ 1 + i !
end

new_line

0 comments on commit efaa936

Please sign in to comment.