unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* #:printer filed in language specification.
@ 2021-09-17 22:50 Justin Veilleux
  2021-09-18 14:47 ` Maxime Devos
  0 siblings, 1 reply; 6+ messages in thread
From: Justin Veilleux @ 2021-09-17 22:50 UTC (permalink / raw)
  To: guile-user

Hello, everyone.

To familiarize myself with guile's compiler tower, I implemented a 
lambda calculus interpreter using guile.

It works relatively well. However, I also wanted it to print a human 
readable version of the procedures created. (It is hard to tell whether 
#<procedure 1e39a38 (s)> is a correct church encoding of the number 3) 
With a lot of fiddling, I managed to write a function that turns a 
procedure into an S-expression.

However, when I tell guile to use it as a pretty printer using the 
#:printer keyword, the repl doesn't actually use it. What can I do to 
fix this ?





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-20  8:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 22:50 #:printer filed in language specification Justin Veilleux
2021-09-18 14:47 ` Maxime Devos
2021-09-18 15:24   ` Justin Veilleux
2021-09-19 12:11   ` Zelphir Kaltstahl
2021-09-19 12:24     ` Maxime Devos
2021-09-20  8:04       ` Zelphir Kaltstahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).