You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/br/ex/simples/reader-only/reader.rkt

10 lines
318 B
Racket

#lang br
(provide read-syntax)
(define (read-syntax src in)
(syntax-let ([#'src-str (port->string in)])
#'(module no-name racket
(define (scramble str)
(list->string (shuffle (string->list str))))
(regexp-replace* #px"\\w+" src-str scramble))))