News for hackers. Stuff that matters.
Re:Ask HN: Why build compilers in Rust instead of C? by watergatorman on Thursday January 31, 2019 @09:58PM (#19051215)
I looked at the Rust site and their published grammar. It is VERY incomplete, missing entire productions.

I cannot determine if the syntax of Rust is "better" than that of C.

At least the ISO "C" std. organization publishes a complete syntax of their language.

Perhaps someone knows where there is a complete grammar for the Rust language?

I cannot find one.

Re:Ask HN: Why build compilers in Rust instead of C? by tanin on Friday February 01, 2019 @01:45PM (#19057129)
I might misunderstand the question here.

Could you elaborate more why the complete grammar of Rust is important for writing a compiler (for any programming langugage) in Rust?

I thought the question was about whether to write a compiler in Rust or C. But it seems you meant writing a parser that parsed the Rust language itself. Or there's something I misunderstand here.