News for hackers. Stuff that matters.
Re:Want to Write a Compiler? Just Read These Two Papers. by buff-a on Friday August 26, 2011 @05:57AM (#2927965)
Fair point. But I have been in the situation where I've got a RDP that outputs what I originally wanted, but now I want, e.g., to output an intermediate form, and I'm fucked.

So writing it isn't all that hard. But changing it after you've written it is a recipe for disaster. I did that a couple of times and looked for A Better Way.

A tool like ANTLR, OTOH, makes re-purposing (and initial development and testing) easy, but at the expense of runtime performance.

Perhaps the lesson is, "write a few RDPs to get the hang of it and then make life easy on yourself"?

There are no comments on this comment yet.