<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass{article}
\usepackage{lisp-on-tex}
\newcount\hoge \hoge\endlinechar
\endlinechar=-1
\read16 to\tmp
\endlinechar=\hoge
\global\font\testfont="\tmp"
\lispinterp{
  (\define \foldl (\lambda (\func \init \list)
    (\lispif (\= \list ()) 
      \init 
      (\foldl \func (\func \init (\car \list)) (\cdr \list)))))
  (\define \createtoken (\lambda (\code)
      (\concat '\iffontchar\testfont' (\concat (\intTOstring \code) 't\else f\fi' ))))
  (\define \MAX :"30000)}
\begin{document}
\noindent
\lispinterp{
  (\letrec ((\count :0) 
    (\loop (\lambda ()
      (\lispif (\&lt; \MAX \count) ()
        (\begin
          (\lispif (\= 't' (\expand (\createtoken \count)))
            (\texprint (\group (\concat '\testfont\char' (\intTOstring \count))))
            ())
          (\texprint '\hskip0pt plus1pt')
          (\immediatewrite)
          (\setB \count (\+ \count :1))
          (\loop))))))
    (\loop))
  }
\end{document}</pre></body></html>