Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.37 KB | None | 0 0
  1. ;; Run via sbcl --eval '(asdf:load-system "test")' --eval '(pkg:main)' s
  2. (defpackage #:pkg
  3.   (:use #:cl)
  4.   (:export #:main))
  5. (in-package #:pkg)
  6.  
  7. (defun main ()
  8.   (in-package #:pkg)
  9.   (let ((arg (read-from-string (car uiop:*command-line-arguments*))))
  10.     (funcall
  11.      (compile nil
  12.               `(lambda ()
  13.                  (symbol-macrolet ((s 1))
  14.                    (format t "Hello ~S~%" ,arg)))))))
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement