3 ms·
Rust is almost context free; there’s one relatively rarely used bit that requires context. And usually it’s only one or two bytes of it.
by steveklabnik 7y ago
Rust is almost context free; there’s one relatively rarely used bit that requires context. And usually it’s only one or two bytes of it.
- h-cobordism 7y agoYou're referring to raw string literals, right?
- steveklabnik 7y agoYes. You need to include more #s than you have in the string, and it’s rare to have a ton of them, let alone a raw string literal in the first place.
- wtetzner 7y agoDoes that make the grammar context-sensitive, or just the lexer?
- steveklabnik 7y agoThis is not an area of my expertise, so I can't say.
- deleted 7y ago[deleted]