/repl
Created
January 4, 2014 20:29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; REPL | |
(define (repl) | |
(let ((r (parser)) ; Parser クラスのインスタンスを束縛 | |
(e (game-master)) ; Game-Master クラスのインスタンスを束縛 | |
(p (message))) ; Message クラスのインスタンスを束縛 | |
(let loop () | |
(let-values (((phase0 info0) (input r))) | |
(let-values (((phase1 info1) (interp e phase0 info0))) | |
(print p phase1 info1))) | |
(loop)))) | |
(repl) ; ゲーム起動 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment