summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/lisp-on-tex/examples/repl.tex
blob: 9a4d1a9bdbd50af089308f5fc0e5a669c1f63fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
\documentclass{article}
\usepackage{lisp-on-tex}
\lispinterp{%
  (\define \repl (\lambda ()
    (\begin
      (\stdprint (\eval (\read)))
      (\repl))))
}
\begin{document}
  \typeout{LISP on TeX interpretor mode}
  \lispinterp{(\repl)}
\end{document}