File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33(provide configure)
44
5- ;; TODO: have the `configure` function call a
6- ;; `use-debug-readtable` function
5+ (require (only-in debug/reader use-debug-readtable))
76
87(define (configure data)
9- (void ))
8+ (use-debug-readtable ))
Original file line number Diff line number Diff line change 11#lang racket/base
22
33(provide make-debug-readtable
4+ use-debug-readtable
45 current-syntax-introducer
56 wrap-reader)
67
2829 (make-readtable rt report-char 'dispatch-macro report-proc))
2930
3031
32+ (define (use-debug-readtable [orig-rt (current-readtable)])
33+ (port-count-lines! (current-input-port))
34+ (current-readtable (make-debug-readtable orig-rt)))
35+
36+
3137;; current-syntax-introducer : (Parameterof [Syntax -> Syntax])
3238(define current-syntax-introducer
3339 (make-parameter (λ (x) x)))
You can’t perform that action at this time.
0 commit comments