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.
15 lines
367 B
Racket
15 lines
367 B
Racket
8 years ago
|
#lang br/quicklang
|
||
|
(require openssl/md5)
|
||
|
;; http://adventofcode.com/2016/day/13
|
||
|
(require graph)
|
||
|
(provide read-syntax
|
||
|
(rename-out [mb #%module-begin]))
|
||
|
|
||
|
(define (read-syntax path port)
|
||
|
(strip-bindings
|
||
|
#`(module mod "lang.rkt"
|
||
|
#,(string-trim (port->string port)))))
|
||
|
|
||
|
(define-macro (mb SALT)
|
||
|
#'(#%module-begin
|
||
|
(md5 (open-input-string SALT))))
|