3 ms·
> Namely it is easier to write a naive rust compiler than a C compiler? You must be joking.
by lelanthran 3y ago
> Namely it is easier to write a naive rust compiler than a C compiler?
You must be joking.
- sylware 3y agoThat's a question. You know the answer?
- vacuity 3y agoWriting a Rust lexer/parser, maybe. The entire compiler? Dubious.
- sylware 3y ago"maybe", then you don't know if it is easier to write a rust naive compiler than a C naive compiler (look at tinycc, cproc/qbe, simple-cc/qbe, etc).
- vacuity 3y agoYou don't seem to be asking a question anymore. That's not what I said maybe to, anyways. If both languages have grammars that are on the same level, I don't see why someone experienced in writing a lexer/parser would have more difficulty with one. I think Rust only needs lookahead for raw strings and there are some quirks with C's grammar, but I'm not knowledgeable about that.