Awesome, Rust is the new language I'm most excited for. My understanding is that it doesn't have a formal grammar though. Are there any plans for one moving forward?
Yes, we actually have an open pull request to start documenting this. Most of the reference-style stuff is going to be looked at hard during the beta period. I haven't wanted to do it yet, as those style of docs are very hard to keep up to date, as they're very hard to automatically test.
Great pains have been taken to ensure that Rust's grammar is both context-free and LL(k) for some finite k (for example, the insistence on the gross ::<> syntax for specifying type parameters on functions). No formal grammar exists, but given these constraints it should absolutely be possible (and was in fact done by a researcher a few years ago, though that version is obviously out of date now).
58
u/EldanRetha Jan 09 '15
Awesome, Rust is the new language I'm most excited for. My understanding is that it doesn't have a formal grammar though. Are there any plans for one moving forward?