News for hackers. Stuff that matters.
Re:The naked truth about writing a programming language (2014) by steveklabnik on Saturday May 02, 2020 @02:57PM (#23054023)
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.
Re:The naked truth about writing a programming language (2014) by h-cobordism on Saturday May 02, 2020 @03:50PM (#23054386)
You're referring to raw string literals, right?
Re:The naked truth about writing a programming language (2014) by steveklabnik on Saturday May 02, 2020 @04:59PM (#23054861)
Yes. 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.
Re:The naked truth about writing a programming language (2014) by wtetzner on Saturday May 02, 2020 @09:51PM (#23056268)
Does that make the grammar context-sensitive, or just the lexer?
Re:The naked truth about writing a programming language (2014) by steveklabnik on Sunday May 03, 2020 @09:18AM (#23058812)
This is not an area of my expertise, so I can't say.