summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lisp-on-tex/examples/repl.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/lisp-on-tex/examples/repl.tex')
-rw-r--r--Master/texmf-dist/doc/latex/lisp-on-tex/examples/repl.tex12
1 files changed, 12 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/repl.tex b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/repl.tex
new file mode 100644
index 00000000000..9a4d1a9bdbd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/repl.tex
@@ -0,0 +1,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} \ No newline at end of file