fork download
  1. (define (get) (get1 (quote ()) (read)))(define (get1 b r) (if (eof-object? r) (reverse b) (get1 (cons r b) (read))))(define (put) (put1 (quote ()) (read-char)))(define (put1 b r) (if (eof-object? r) (list->string (reverse b)) (if (char=? #\) r) (put1 (cons #\. (cons #\. (cons r b))) (read-char)) (put1 (cons r b) (read-char)))))(define (final lis) (if (null? lis) lis (final1 (car lis) (cdr lis))))(define (final1 f r) (if (and (pair? f) (pair? (cdr f)) (eqv? (quote quote) (car f))) (cons f (final (cdr r))) (if (list? f) (final2 f (gather (count (car r)) (cons (quote ()) (final (cdr r))))) (if (or (vector? f) (pair? f) (eq? #\) f)) (cons f (final (cdr r))) (cons f (final r))))))(define (final2 f g) (cons (append (final f) (car g)) (cdr g)))(define (count s) (- (string-length (symbol->string s)) 2))(define (gather c lis) (if (= c 0) (cons (reverse (car lis)) (cdr lis)) (gather (- c 1) (cons (cons (cadr lis) (car lis)) (cddr lis)))))(for-each write (final (with-input-from-string (put) get)))(display "hello" "world")
Runtime error #stdin #stdout #stderr 0.02s 52568KB
stdin
(display).. "hello" "world"
stdout
(display "hello" "world")
stderr
Backtrace:
In ice-9/boot-9.scm:
 160: 9 [catch #t #<catch-closure 562044df3260> ...]
In unknown file:
   ?: 8 [apply-smob/1 #<catch-closure 562044df3260>]
In ice-9/boot-9.scm:
  66: 7 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 6 [eval # #]
In ice-9/boot-9.scm:
2404: 5 [save-module-excursion #<procedure 562044e15940 at ice-9/boot-9.scm:4051:3 ()>]
4058: 4 [#<procedure 562044e15940 at ice-9/boot-9.scm:4051:3 ()>]
1727: 3 [%start-stack load-stack ...]
1732: 2 [#<procedure 562044e2ac60 ()>]
In unknown file:
   ?: 1 [primitive-load "/home/Ms13Hv/prog.scm"]
   ?: 0 [display "hello" "world"]

ERROR: In procedure display:
ERROR: In procedure display: Wrong type argument in position 2: "world"