There is a lot of variety when it comes to the different types of programmers. In general, is beneficial for a programmer to learn how to build a compiler? In what cases would
This is like asking "is it beneficial for a programmer to have more programming knowledge?". The simple is that yes, it is beneficial. How much will it benefit day to day non-compiler-building programing affairs is hard to guess. But it will definitely teach you about how the internals of what you are doing work, how to manipulate strings to dictate logic and possibly help you debug better regardless of what you use.