adjustments
parent
04b52e473e
commit
dccdc4ae1d
@ -1,21 +0,0 @@
|
||||
#lang br
|
||||
(require "parser.rkt" "tokenizer.rkt")
|
||||
(provide basic-output-port configure-this!)
|
||||
|
||||
(define basic-output-port
|
||||
(make-parameter (open-output-nowhere)))
|
||||
|
||||
(define repl-parser (make-rule-parser b-repl))
|
||||
|
||||
(define (configure-this!)
|
||||
(basic-output-port (current-output-port))
|
||||
|
||||
(define (read-one-line path port)
|
||||
(define one-line (read-line port))
|
||||
(if (eof-object? one-line)
|
||||
eof
|
||||
(repl-parser
|
||||
(make-tokenizer (open-input-string one-line)))))
|
||||
(current-read-interaction read-one-line))
|
||||
|
||||
|
@ -0,0 +1,21 @@
|
||||
#lang br
|
||||
(require "parser.rkt" "tokenizer.rkt")
|
||||
(provide basic-output-port do-setup!)
|
||||
|
||||
(define basic-output-port
|
||||
(make-parameter (open-output-nowhere)))
|
||||
|
||||
(define (do-setup!)
|
||||
(basic-output-port (current-output-port))
|
||||
(current-read-interaction read-one-line))
|
||||
|
||||
(define repl-parser (make-rule-parser b-repl))
|
||||
|
||||
(define (read-one-line path port)
|
||||
(define one-line (read-line port))
|
||||
(if (eof-object? one-line)
|
||||
eof
|
||||
(repl-parser
|
||||
(make-tokenizer (open-input-string one-line)))))
|
||||
|
||||
|
Loading…
Reference in New Issue