Macro definitions cannot come after its usage
Issue #104
resolved
This is perfectly valid R6RS code:
#!r6rs
(import (rnrs))
(define (fun)
(mac))
(fun)
(define-syntax mac
(syntax-rules ()
((_)
(begin
(display 123)
(newline)
(flush-output-port (current-output-port))))))
But raises an error.
Comments (2)
-
reporter -
reporter - changed status to resolved
Adding 'program' syntax to run script on strict R6RS mode (Fixes
#104)→ <<cset 57a34a901f74>>
- Log in to comment
0a9b403 fixes this issue partially.
For R6RS script, we need to introduce a new option.