doc/sod.tex: Cope if `\pkgversion' isn't defined.
[sod] / doc / sod.tex
1 %%% -*-latex-*-
2 %%%
3 %%% Description of the internal class structure and protocol
4 %%%
5 %%% (c) 2009 Straylight/Edgeware
6 %%%
7
8 %%%----- Licensing notice ---------------------------------------------------
9 %%%
10 %%% This file is part of the Simple Object Definition system.
11 %%%
12 %%% SOD is free software; you can redistribute it and/or modify
13 %%% it under the terms of the GNU General Public License as published by
14 %%% the Free Software Foundation; either version 2 of the License, or
15 %%% (at your option) any later version.
16 %%%
17 %%% SOD is distributed in the hope that it will be useful,
18 %%% but WITHOUT ANY WARRANTY; without even the implied warranty of
19 %%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 %%% GNU General Public License for more details.
21 %%%
22 %%% You should have received a copy of the GNU General Public License
23 %%% along with SOD; if not, write to the Free Software Foundation,
24 %%% Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 \documentclass[noarticle, titlepage]{strayman}
27
28 \errorcontextlines=999
29
30 \usepackage[T1]{fontenc}
31 \usepackage[utf8]{inputenc}
32 \usepackage[palatino, helvetica, courier, maths=cmr]{mdwfonts}
33 \usepackage{makeidx}
34 \usepackage
35 [columns=2, justific=raggedright,
36 totoc=true, font=small]
37 {idxlayout}
38 \usepackage{tikz}
39 \usetikzlibrary{calc}
40 \usetikzlibrary{positioning}
41 \usepackage{syntax}
42 \usepackage{sverb}
43 \usepackage{mdwtab}
44 \usepackage[mdwmargin, within=section]{mdwthm}
45 \usepackage{amssymb}
46 \usepackage{footnote}
47 \usepackage{at}
48 \usepackage{mdwref}
49
50 \usepackage{sod}
51
52 \makeindex
53 \let\indexstheadcase\relax
54 \bibliographystyle{mdwalpha}
55
56 \ifx\pkgversion\xxundefined
57 \immediate\typeout{WARNING: \string\pkgversion\ not defined}
58 \def\pkgversion{UNSET}
59 \fi
60
61 \title{A Sensible Object Design for C}
62 \author{Mark Wooding}
63 \date{\today; version \pkgversion}
64
65 \begin{document}
66
67 \frontmatter
68 \maketitle
69
70 %%%--------------------------------------------------------------------------
71
72 \tableofcontents
73
74 \mainmatter
75
76 \include{intro}
77
78 %%%--------------------------------------------------------------------------
79 \part{Tutorial\label{p:tut}}
80
81 \include{tutorial}
82
83 %%%--------------------------------------------------------------------------
84 \part{Reference\label{p:ref}}
85
86 \include{refintro}
87 \include{concepts}
88 \include{cmdline}
89 \include{syntax}
90 \include{runtime}
91 \include{structures}
92
93 %%%--------------------------------------------------------------------------
94 \part{Lisp interface\label{p:lisp}}
95
96 \include{lispintro}
97 %% package.lisp
98 %% sod.asd.in
99 %% sod-frontend.asd.in
100 %% auto.lisp.in
101
102 \include{misc}
103 %% utilities.lisp
104 %% pset-impl.lisp
105 %% pset-parse.lisp
106 %% pset-proto.lisp
107 %% optparse.lisp
108 %% frontend.lisp
109 %% final.lisp
110
111 \include{parsing}
112 %% package.lisp
113 %% floc-impl.lisp
114 %% floc-proto.lisp
115 %% streams-impl.lisp
116 %% streams-proto.lisp
117 %% scanner-context-impl.lisp
118 %% scanner-impl.lisp
119 %% scanner-proto.lisp
120 %% scanner-token-impl.lisp
121 %% scanner-charbuf-impl.lisp
122 %% parser-impl.lisp
123 %% parser-proto.lisp
124 %% parser-expr-impl.lisp
125 %% parser-expr-proto.lisp
126 %% lexer-impl.lisp
127 %% lexer-proto.lisp
128
129 \include{clang}
130 %% c-types-class-impl.lisp
131 %% c-types-impl.lisp
132 %% c-types-parse.lisp
133 %% c-types-proto.lisp
134 %% codegen-impl.lisp
135 %% codegen-proto.lisp
136 %% fragment-parse.lisp
137
138 \include{meta}
139 %% classes.lisp
140 %% class-utilities.lisp
141 %% class-make-impl.lisp
142 %% class-make-proto.lisp
143 %% class-finalize-impl.lisp
144 %% class-finalize-proto.lisp
145
146 \include{layout}
147 %% class-layout-impl.lisp
148 %% class-layout-proto.lisp
149 %% method-impl.lisp
150 %% method-proto.lisp
151 %% method-aggregate.lisp
152
153 \include{module}
154 %% module-impl.lisp
155 %% module-parse.lisp
156 %% module-proto.lisp
157 %% builtin.lisp
158
159 \include{output}
160 %% output-impl.lisp
161 %% output-proto.lisp
162 %% class-output.lisp
163 %% module-output.lisp
164
165 %%%--------------------------------------------------------------------------
166 \part{Appendices}
167 \appendix
168
169 \include{cutting-room-floor}
170
171 %%%--------------------------------------------------------------------------
172 \backmatter
173
174 \bibliography{%
175 isostd,%
176 sigplan1990}
177 \printindex
178
179 %%%----- That's all, folks --------------------------------------------------
180 \end{document}
181
182 %%% Local variables:
183 %%% mode: LaTeX
184 %%% TeX-PDF-mode: t
185 %%% End: