Skip to content

Commit

Permalink
add: improve debugging line in reader
Browse files Browse the repository at this point in the history
  • Loading branch information
tnelson committed Oct 23, 2024
1 parent 740b65b commit 85ca793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion forge/lang/reader.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(require racket/pretty)

; Forge's reader function
(define (read-syntax path port)
(define this-lang 'forge)
Expand Down Expand Up @@ -146,7 +148,9 @@

(define module-datum `(module forge-mod forge/lang/expander
,@final))
; (printf "Ints-coerced: ~a~n" ints-coerced)
; For debugging purposes, convert to a datum first or pretty-format will truncate.
;(printf "Ints-coerced: ~a~n" (pretty-format (syntax->datum ints-coerced)))

; (raise "STOP")
(define result (datum->syntax #f module-datum))
;(printf "debug result of expansion: ~a~n" result)
Expand Down

0 comments on commit 85ca793

Please sign in to comment.