REPL 対応
re2c は入力をバッファリングするので (eval (read) ...) 的な事が構造上難しい。
そこで苦肉の策として get-line を使用し
(eval (call-with-port (open-string-input-port (get-line (current-input-port))) read) (environment '(rnrs)))
のように REPL コアを表現する事に。
re2c は入力をバッファリングするので (eval (read) ...) 的な事が構造上難しい。
そこで苦肉の策として get-line を使用し
(eval (call-with-port (open-string-input-port (get-line (current-input-port))) read) (environment '(rnrs)))
のように REPL コアを表現する事に。