📝Rewriting from scratch is common for compilers
Unlike the rest of the software engineering world, rewriting from scratch is common for compilers, and every major compiler has gone through a rewrite. It’s often the only way to self-host, although not all compilers are rewritten in their own language.