@magnus has joined the channel
is there a tool to auto-generate scribble documentation stubs from source code? Then one just needs to fill in the description
Warning: lexer at … can accept the empty string.
Is there a way to suppress this warning?
I intentionally want my lexer to match empty string (it’s there as an else clause which will transition to another lexer to continue lexing. I don’t want it to consume a character)
Alternatively, I can consume one character, and then try to “unget” it, but this only works on file/string-based port, not stdin
Actually, the unget approach doesn’t work well because it would break for unicode string. So now it looks like I really need to suppress the warning somehow…
Oh, interesting. current-error-port
is not reset after each phase ends?
I am trying
(begin-for-syntax
(current-error-port (open-output-nowhere)))
to suppress the above warning. But the unwanted side effect is that phase 0 still has (open-output-nowhere)
as current-error-port
.
Ah, I can actually compute the number of bytes to unget, so this approach actually works.
@bzyeung has joined the channel