pull/21/head
Matthew Butterick 6 years ago
parent b4c69df771
commit 6024945967

@ -7,7 +7,7 @@
(for/list ([tok (in-port read-char ip)]) (for/list ([tok (in-port read-char ip)])
tok)) tok))
(define (parse toks) (define (parse src toks)
(for/list ([tok (in-list toks)]) (for/list ([tok (in-list toks)])
(define int (char->integer tok)) (define int (char->integer tok))
(for/list ([bit (in-range 7)]) (for/list ([bit (in-range 7)])
@ -17,8 +17,8 @@
(define (read-syntax src ip) (define (read-syntax src ip)
(define toks (tokenize ip)) (define toks (tokenize ip))
(define parse-tree (parse toks)) (define parse-tree (parse src toks))
(strip-context (strip-context
(with-syntax ([PT parse-tree]) (with-syntax ([PT parse-tree])
#'(module tacofied racket #'(module tacofied br
(for-each displayln 'PT))))) (for-each displayln 'PT)))))
Loading…
Cancel
Save