|
|
@ -11,7 +11,7 @@
|
|
|
|
(define (to-string x)
|
|
|
|
(define (to-string x)
|
|
|
|
(if (string? x)
|
|
|
|
(if (string? x)
|
|
|
|
x ; fast exit for strings
|
|
|
|
x ; fast exit for strings
|
|
|
|
(with-handlers ([exn:fail? (λ(exn) (error "Can't convert ~a to ~a" x 'string))])
|
|
|
|
(with-handlers ([exn:fail? (λ(exn) (error (format "Pollen parser: can't convert ~a to ~a" x 'string)))])
|
|
|
|
(cond
|
|
|
|
(cond
|
|
|
|
[(equal? '() x) ""]
|
|
|
|
[(equal? '() x) ""]
|
|
|
|
[(symbol? x) (symbol->string x)]
|
|
|
|
[(symbol? x) (symbol->string x)]
|
|
|
|