[antlr-interest] Re: header section - include files in lexers and parsers generated by the c++ code gen
arnulfheller
heller at cnsystems.at
Tue Sep 30 04:19:49 PDT 2003
Hi Ric,
I found a more convenient way to achieve this: simply put
header "pre_include_hpp" {
#ifndef PRECOMPILEDHEADERS
}
header "post_include_hpp" {
#endif // PRECOMPILEDHEADERS
}
header "pre_include_cpp" {
#include "StdAfx.h"
}
in your grammar file and include the appropriate headers in stdafx.h
cheers,
arnulf
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list