[racket-users] custom input ports and specials

2021-04-12 Thread je...@lisp.sh
I'm implementing a tokenizer as a custom input port using `make-input-port`. My thinking is that `peek-char-or-special` and `read-char-or-special` will be the primary interface to the tokenizer; port locations will also be used. In this case, the input port should emitting characters as well

[racket-users] custom input ports

2016-03-14 Thread Jon Zeppieri
Almost every time I've created a custom input port, I've run up against the rule: "The read-in procedure must not block indefinitely." And each time, I've either: - ignored it (with the suspicion that I've just written code that can block the whole process, though I've never actually verified