Showing posts with label CLISP. Show all posts
Showing posts with label CLISP. Show all posts

Wednesday, October 26, 2016

CLISP: For loop Example

Command:

$ cat for_loop.lisp


Result:

(loop for x in '(hello world 123)
      do (print x))


Command:

$ clisp for_loop.lisp


Result:

HELLO
WORLD
123

CLISP: Command-line Argument Parsing Example

Command:

$ cat command_line_args_parsing.lisp


Result:

(print *args*)


Command:

$ clisp command_line_args_parsing.lisp Hello World 123


Result:

("Hello" "World" "123")