Re:Show HN: A pure C89 implementation of Go channels, with b...
by vacuity on Thursday December 14, 2023 @05:55PM
(#38648538)
Writing a Rust lexer/parser, maybe. The entire compiler? Dubious.
[ Parent
| on HN ]
Re:Show HN: A pure C89 implementation of Go channels, with b...
by sylware on Friday December 15, 2023 @06:31AM
(#38653100)
"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).
Re:Show HN: A pure C89 implementation of Go channels, with b...
by vacuity on Friday December 15, 2023 @03:39PM
(#38658522)
You 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.