[antlr-interest] Antlr embedded in c++ dll... Token Type Export
Ric Klaren
ric.klaren at gmail.com
Mon Oct 3 16:16:19 PDT 2005
nicolas.felix at digitech.fr wrote:
> I am using Antlr in C++ dll.
> I would like to export de ParserType generated like this.
>
> #ifdef __cplusplus
> struct CUSTOM_API DigiladParserTokenTypes {
> #endif
> enum {
> EOF_ = 1,
> ABS_OP = 4,
> ENT_OP = 5,
> ...
> }
> };
> #ifdef __cplusplus
> };
>
> My question is how (and where) I define the symbol CUSTOM_API to make
> the enum visible out of my librairy.
>
> Or may I do this in a different way.
Check out <distro>/lib/cpp/README
Cheers,
Ric
More information about the antlr-interest
mailing list