| 1 |
|
| 2 |
(library (srfi :166 columnar) |
| 3 |
(export |
| 4 |
columnar tabular wrapped wrapped/list wrapped/char |
| 5 |
justified from-file line-numbers) |
| 6 |
(import (except (rnrs) |
| 7 |
error |
| 8 |
define-record-type) |
| 9 |
(rnrs r5rs) |
| 10 |
(only (srfi :1) count fold) |
| 11 |
(srfi :6) |
| 12 |
(srfi :9) |
| 13 |
(srfi :23 error tricks) |
| 14 |
(srfi :117) |
| 15 |
(srfi :130) |
| 16 |
(only (srfi :152 strings) write-string) |
| 17 |
(srfi :166 base) |
| 18 |
(srfi private include)) |
| 19 |
(define-syntax let-optionals* |
| 20 |
(syntax-rules () |
| 21 |
((let-optionals* opt-ls () . body) |
| 22 |
(begin . body)) |
| 23 |
((let-optionals* (op . args) vars . body) |
| 24 |
(let ((tmp (op . args))) |
| 25 |
(let-optionals* tmp vars . body))) |
| 26 |
((let-optionals* tmp ((var default) . rest) . body) |
| 27 |
(let ((var (if (pair? tmp) (car tmp) default)) |
| 28 |
(tmp2 (if (pair? tmp) (cdr tmp) '()))) |
| 29 |
(let-optionals* tmp2 rest . body))) |
| 30 |
((let-optionals* tmp tail . body) |
| 31 |
(let ((tail tmp)) . body)))) |
| 32 |
(define read-line get-line) |
| 33 |
|
| 34 |
(SRFI-23-error->R6RS |
| 35 |
"(library (srfi :166 columnar))" |
| 36 |
(include/resolve ("srfi" "%3a166") "column.scm"))) |