This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use chicken-syntax intarweb uri-common) | |
(use spiffy) | |
(use srfi-13) | |
(define (build-path-symbol) | |
(define path #f) | |
(if (not path) | |
(set! path (apply symbol-append | |
(map (lambda (x) (if (string? x) (string->symbol x) x)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-syntax <> | |
(syntax-rules () | |
((_ v e ...) | |
(if (null? (command-line-arguments)) | |
(let loop ((v (read-line))) | |
(unless (eof-object? v) | |
e ... | |
(loop (read-line)))) | |
(let file-loop ((port (open-input-file (car (command-line-arguments)))) | |
(rest (cdr (command-line-arguments)))) |