title: Integrating ANTLR 4 in a C++ application
body: <p>Recently I picked up a copy of <code>The Definitive ANTLR 4 Reference</code> and since I am sophisticated when it comes to working with grammars and languages I wanted to work on my DSL I once have written using <code>yacc</code> and <code>bison</code>. The general idea is to write a translator (with included validation for type safety<sup>(1)</sup>) which translates the DSL to JavaScript during runtime which is then executed by v8.</p>
  
  <p>Although ANTLR was designed for inclusion in Java applications I would like to stay with native C++. Can ANTLR 4 produce such a C parser/lexer<sup>(2)</sup> which I can include using a C++-style wrapper? And how to do so?</p>
  
  <hr>
  
  <p><sup>(1)</sup> The book has some good examples which I will use as a template.<br>
  <sup>(2)</sup> I am not sure but I think that I read somewhere that ANTLR doesn't support output in C++, am I right?</p>