.gambcini.scm 861 B

123456789101112131415161718192021222324252627282930313233
  1. (define-macro (=> val . exprs)
  2. (let lp ((expr val)
  3. (exprs exprs))
  4. (if (null? exprs)
  5. expr
  6. (let ((e (car exprs)))
  7. (lp `(,(car e) ,expr ,@(cdr e))
  8. (cdr exprs))))))
  9. (define (port-set-unescaped! port)
  10. (output-port-readtable-set!
  11. port
  12. (=> (output-port-readtable port)
  13. (readtable-max-unescaped-char-set #\U0010ffff)
  14. ;; (readtable-max-write-level-set 6)
  15. ;; (readtable-max-write-length-set 14)
  16. )))
  17. (port-set-unescaped! (repl-output-port))
  18. (port-set-unescaped! (current-output-port))
  19. (include ".gambc/set-compiler.scm")
  20. (include ".gambc/set-config.scm")
  21. (define (lo)
  22. (generate-proper-tail-calls #f)
  23. (current-read-square-as-vector? #t)
  24. (current-write-vector-as-square? #t)
  25. (load ".gambc/load.scm")
  26. (cond ((getenv "COPYCAT_ORIG_PWD" #f)=> current-directory)))
  27. (lo)