Skip to content

Commit

Permalink
provide read in reader too; avoid dynamic-require error
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed Jun 23, 2021
1 parent 5da9a0c commit fff6b73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.rkt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#lang racket/base

(module reader racket/base
(require "reader.rkt")
(provide (all-from-out "reader.rkt")))
(require cli/reader)
(provide (all-from-out cli/reader)))
9 changes: 7 additions & 2 deletions reader.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

(require (only-in racket/sequence sequence->list))

(provide read-syntax)
(provide
(rename-out [cli-read-syntax read-syntax]
[cli-read read]))

(define (read-syntax path port)
(define (cli-read port)
(cli-read-syntax #f port))

(define (cli-read-syntax path port)
;; this reads symexes from the source file
(define src-datums (sequence->list (in-port read port)))
(define module-datum `(module cli-mod cli/expander
Expand Down

0 comments on commit fff6b73

Please sign in to comment.