[antlr-interest] C code generation differences on Windows

Jim Idle jimi at temporal-wave.com
Wed Nov 10 09:31:39 PST 2010


This is likely some error in your process. Other than the library headers
being different, the generated code is exactly the same on all systems so
that you can generate on one system and compile on all the others. 

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Michael J Iatauro
> Sent: Monday, November 01, 2010 8:06 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] C code generation differences on Windows
> 
> Using ANTLR 3.1.3, I'm seeing some odd code generation differences in
> the tree parser between Windows and *nix platforms, specifically having
> to do with token names and IDs, which are causing my tree parser to
> reject all incoming trees.  There are several tokens missing in the
> generated Windows header, and those missing tokens as well as several
> others aren't given strings in the TreeTokenNames array in the C code.
> Even more weirdly, the token that's always expected to be the root is
> given different IDs, even between the parser and the tree parser, which
> is causing the rejection.  Has anybody else seen anything like this, or
> have a sense of what's going on?
> Thanks!
> 
> ~MJI
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address



More information about the antlr-interest mailing list