aboutsummaryrefslogtreecommitdiff
path: root/src/input/exit.input.pamphlet
blob: 483802ee53ec9e1109d52682d0923c148d66bd2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input EXIT.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input generated from ExitXmpPage
)clear all

n := 0
gasp(): Exit ==
    free n
    n := n + 1
    error "Oh no!"
half(k) ==
  if odd? k then gasp()
  else k quo 2
half 4
half 3
n
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}