magnus
2020-6-21 07:23:07

@magnus has joined the channel


code
2020-6-21 08:51:15

is there a tool to auto-generate scribble documentation stubs from source code? Then one just needs to fill in the description


sorawee
2020-6-21 12:40:28

Warning: lexer at … can accept the empty string. Is there a way to suppress this warning?


sorawee
2020-6-21 12:41:25

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)


sorawee
2020-6-21 13:10:35

Alternatively, I can consume one character, and then try to “unget” it, but this only works on file/string-based port, not stdin


sorawee
2020-6-21 14:15:23

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…


sorawee
2020-6-21 14:29:04

Oh, interesting. current-error-port is not reset after each phase ends?


sorawee
2020-6-21 14:30:41

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.


sorawee
2020-6-21 16:37:56

Ah, I can actually compute the number of bytes to unget, so this approach actually works.


bzyeung
2020-6-22 02:12:24

@bzyeung has joined the channel