blob: 64157c704505e025f69f4ff90c732b6905d42431 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/sbcl --script
(load "../interpreter.lisp")
(intcode:run (intcode:parse "input")
(lambda ()
(parse-integer
(if (rest *posix-argv*)
(first (setf *posix-argv* (rest *posix-argv*)))
(read-line))))
(lambda (x) (format t "~d~%" x)))
|