5 .\" (c) 2015 Straylight/Edgeware
8 .\"----- Licensing notice ---------------------------------------------------
10 .\" This file is part of the Sensible Object Design, an object system for C.
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.
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.
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.
26 .\"--------------------------------------------------------------------------
27 .so ../common/defs.man \" @@@PRE@@@
29 .\"--------------------------------------------------------------------------
30 .TH sod 1 "11 October 2015" "Straylight/Edgeware" "Sensible Object Design"
33 sod \- Sensible Object Design translator
35 .\"--------------------------------------------------------------------------
57 .\"--------------------------------------------------------------------------
62 program reads input files describing Sod modules,
63 containing class definitions and other items,
64 and generates output files,
65 such as C source and header files.
68 The following command-line options are recognized.
71 Write command-line help text to standard output,
72 and exit successfully.
75 Write Sod's version number to standard output,
76 and exit successfully.
79 Write a brief usage message to standard output,
80 and exit successfully.
83 Generate a Lisp stack backtrace if an error is encountered.
84 This is useful when debugging,
87 reports unusual errors, or
88 is complaining unjustifiably about something.
91 Generate output for to the built-in module,
92 which defines the root classes
96 For the purpose of naming output files,
97 the built-in module is named
100 .BI "\-I, \-\-include=" dir
101 Look for imported modules and extension files in directory
103 This option may be repeated:
104 directories are searched in the order they were named.
106 .B "\-M, \-\-track-dependencies"
110 write a Makefile fragment listing the files it depends on
117 .BI "\-d, \-\-directory=" dir
118 Write output files to directory
120 instead of the current directory.
122 .B "\-e, \-\-eval=" lisp
123 Evaluate the Lisp forms in
127 if you want output, write Lisp to print it.
128 Forms are evaluated in the
132 .B "\-l, \-\-load=" file
133 Load and evaluate Lisp code from
135 The file is loaded into the
140 Write output to standard output,
143 .BI "\-t, \-\-type=" out-type
144 Produce output of type
146 Output types can be defined by extensions.
147 The built-in output types are described below.
151 file named on the command-line
152 is read and parsed as a Sod module:
155 for the built-in syntax.
156 An output file is written for each module read,
157 and the built-in module if the
160 and for each output type requested using the
163 At least one output type must be provided.
166 If a module is read from a file named
170 doesn't contain a dot
172 or if the file has a simple
174 which doesn't contain a dot
175 (except possibly an initial one),
176 then the module's name is
178 It is conventional for module files to be named
180 Output file names are determined by the module name,
182 and the output directory
188 The following output types are defined.
192 suitable for standalone compilation,
193 defining the necessary direct and effective method functions
195 for the classes defined in the module.
196 The output file is named
197 .IB dir / name .c \fR.
200 Write a C header file,
201 suitable for inclusion using
203 declaring the necessary data structures and functions
204 for the classes defined in the module.
205 The output file is named
206 .IB dir / name .h \fR.
208 .\"--------------------------------------------------------------------------
214 .\"--------------------------------------------------------------------------
216 Mark Wooding, <mdw@distorted.org.uk>
218 .\"----- That's all, folks --------------------------------------------------