freenode/#lisp - IRC Chatlog
Search
12:31:14
Selwyn
is there a way to print Lisp forms without the quote symbol and backquote symbol being replaced by ' and `?
12:32:56
Selwyn
at the REPL, '`(a ,b) ==> `(a ,b) whereas the desired output would be something like (MY-IMPL::QUASIQUOTE (A (MY-IMPL::UNQUOTE B)))
12:37:40
heisig
Selwyn: Maybe fare-quasiquote ( https://github.com/fare/fare-quasiquote ) can help you. As flip214 said, quasiquotation is, by default, very implementation-dependent.
13:59:03
ogamita
Selwyn: (print-conses '`(a ,b)) #| (list* . ((quote . (a . ())) . ((list . (b . ())) . ()))) --> (list* 'a (list b)) |#
13:59:32
ogamita
(symbol-package 'print-conses) #| --> #<Package "COM.INFORMATIMAGO.COMMON-LISP.PICTURE.CONS-TO-ASCII"> |#
14:00:32
ogamita
Selwyn: note however that: (print-conses '(a #(b (c d e) f) g)) #| (a . (#(b (c d e) f) . (g . ()))) --> (a #(b (c d e) f) g) |# ie. it doesn't enter into vectors and other structures.
14:00:50
pfdietz
xsperry: in that thing from yesterday, you could also imagine f and g (and (c f g)) return the value returned by the argument thunk when it is called.
14:03:54
Selwyn
ogamita: thanks for the link. sbcl in particular relies on some structures to implement unquoting
21:05:01
anamorphic_
Hi, I have a bunch of lisp files and I want to create a static cross reference for them (perhaps building something like LXR) - is xref.lisp from the AI repo my best bet as a starting point?
21:13:38
pjb
anamorphic_: yes. Also, it has been included in slime/swank, so perhaps it's modernized in there?