Subj : Re: How-to on writing an interpreter? To : comp.programming From : osmium Date : Mon Jul 18 2005 01:38 pm "Rob Thorpe" writes: >> The basic process is to define the language and to define the >> intermediate structure to be interpreted. The latter will be symbol >> tables and trees/graphs representing the code to execute. (OO languages, >> such as C++ are EXTREMELY well suited for such applications) > > Actually I can't think of anything less useful for contructing trees > than OO. It can be done very simply using procedural programming. For one tree, fine. But what if you want several trees in one program? Or want to write a tree once and be done with it, i.e., keep reusing the same tree logic in several programs? .