Good grief, I remember this cruft.<p><pre><code>   class Nineties : public Node {
      void accept(Visitor &amp;v) {
         cout &quot;Visitor &quot; &lt;&lt; v &lt;&lt; &quot;, welcome to the year 1995&quot; &lt;&lt; endl;
      }
   }
</code></pre>
A better idea would be to write all this code processing <i>in</i> the language that is being byte-code interpreted. 
That is to say, use an existing implementation of that language to write a compiler which produces byte code. Then write the byte code interpreter for that in C++. Finally, include the compiler&#x27;s byte code image in the C++ program (as a static array or whatever), so that the program is a complete implementation which can compile code and then run the bytecode.