How to integrate ANTLR (2.7) in Visual Studio 2005 (C++) build?

I have a project containing files generated from a .g file (antlr 2.7.x). The guy who wrote the whole thing has left me with it. Until now, I did not need to modify the grammar and all was fine. But now, I cannot continue without modifying the grammar (i.e. the .g-file).

I have the source code of the used antlr and the visual studio 2005 project. Unfortunately, the lexer and parser files are not generated prior to the build (in fact they are never generated) and that leads to my question: how do I generate these files whenever the grammar file is modified? Or in other words, how do I integrate antlr into visual studio?


The ANTLR wiki has a few entries about Visual Studio integration:

Need Your Help

DNN - Adding a secure folder

module dotnetnuke

I'm currently coding a module where users can add secure folders.

Using emacs for large multi-file JavaScript project

javascript c++ emacs project-management webgl

I am looking to port a game from C++ to JavaScript/WebGL, and I want to use emacs.