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.
10 lines
318 B
Racket
10 lines
318 B
Racket
9 years ago
|
#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))))
|