mike
2019-11-24 11:10:51

@mike has joined the channel


pavpanchekha
2019-11-24 14:12:18

Thanks!


laurent.orseau
2019-11-24 17:04:40

There’s also substring, but actually you probably want to use Racket’s reader so that inner escaped quotes are parsed properly, (with-input-from-string "\"I said \\\"hello world\\\" but HAL wasn't listening\"" read)


elyandarin
2019-11-24 21:38:23

Quick question: How would I load a file as a string? (I want to test my tokenizer/parser with something bigger than one- or two-line statements.)


samth
2019-11-24 21:39:25

@elyandarin you might like file->string


elyandarin
2019-11-24 21:45:00

Ah, nice and logical! Thanks! (I actually tried that, but it looks like I had to require racket/file, first.)


mark.warren
2019-11-25 07:49:35

@bill_temps Sorry for the delay in answering, thanks for the advice.


mark.warren
2019-11-25 07:51:14

@samdphillips Thanks for that. I’ll give it a try.