Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Rust's grammar is also context-free, as far as I know.

I believe bytestrings are context-sensitive :( I don't remember the exact details here, so I could be wrong. But other than that...



Technically, byte-strings (and nested comments) mean the lexer is not regular, but the grammar is still context-free. But anyway, parsing is not typically the bottle-neck these days.


Oh, that's just lexing though.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: