|
205 | 205 | (= out-file-name* "")
|
206 | 206 | (= out-file* (stdout))
|
207 | 207 | (def doit (arg)
|
208 |
| - (with (cmd (car arg) args (cdr arg)) |
209 |
| - (w/stdout out-file* |
210 |
| - (if (is 'newtable cmd) (apply newtable args) |
211 |
| - (is 'page cmd) (apply page args) |
212 |
| - (is 'top-page cmd) (apply top-page args) |
213 |
| - (is 'text cmd) (apply text args) |
214 |
| - (is 'op cmd) (op (cons 'op args )) |
215 |
| - (is 'mac cmd) (op (cons 'mac args)) |
216 |
| - (is 'def cmd) (op (cons 'def args)) |
217 |
| - (is 'var cmd) (op (cons 'var args)) |
218 |
| - (is 'op-nolink cmd) (op (join '(op nolink) args)) |
219 |
| - (is 'index cmd) (index) |
220 |
| - (is 'import cmd) (copy-file (args 0)) |
221 |
| - (is 'template) nil |
222 |
| - (is 'file cmd) (do (= out-file-name* (args 0)) |
223 |
| - (= out-file* (outfile (arg 1)))) |
224 |
| - (err "Expected a template operation" arg) |
225 |
| - )))) |
| 208 | + (with (cmd (car arg) args (cdr arg)) |
| 209 | + (w/stdout out-file* |
| 210 | + (if (is 'newtable cmd) (apply newtable args) |
| 211 | + (is 'page cmd) (apply page args) |
| 212 | + (is 'top-page cmd) (apply top-page args) |
| 213 | + (is 'text cmd) (apply text args) |
| 214 | + (is 'op cmd) (op (cons 'op args )) |
| 215 | + (is 'mac cmd) (op (cons 'mac args)) |
| 216 | + (is 'def cmd) (op (cons 'def args)) |
| 217 | + (is 'var cmd) (op (cons 'var args)) |
| 218 | + (is 'op-nolink cmd) (op (join '(op nolink) args)) |
| 219 | + (is 'index cmd) (index) |
| 220 | + (is 'import cmd) (copy-file (args 0)) |
| 221 | + (is 'template) nil |
| 222 | + (is 'file cmd) (do (= out-file-name* (args 0)) |
| 223 | + (= out-file* (outfile (arg 1)))) |
| 224 | + (err "Expected a template operation" arg))))) |
226 | 225 |
|
227 | 226 |
|
228 | 227 | (def triples (xs (o n 3))
|
|
0 commit comments