Coding 2024-06-06
Still playing with the new toy, so I didn't have much time to touch code today. (I think I might need to just take a break from trying to blog for a bit? I'll think about it.)
Here's where I'm at thinking about Crafting Interpreters:
The scanner needs to take slices of the input string to do various things, but the builtin char_indices stuff returns the start index of each code point, which means I need some way to go from "an index on a code point boundary" to "the next such index". This can work with is_char_boundary, which should check no more than four indices ahead I think.
The challenge is to take these ideas and use them in a way that makes sense.
Anyway, it's late, I should get ready for bed.
Good night.