[antlr-interest] C Runtime - Duplicate symbols defined inparser and lexer

Jim Idle jimi at temporal-wave.com
Thu Aug 9 22:36:47 PDT 2007


This is actually already fixed in the current source - it was just that the cdfa was not declared static and should have been.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Kay Roepke
> Sent: Tuesday, August 07, 2007 1:05 AM
> To: Cameron Esfahani
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] C Runtime - Duplicate symbols defined
> inparser and lexer
> 
> 
> On Aug 6, 2007, at 10:58 PM, Cameron Esfahani wrote:
> 
> > Specifically, the symbol is named cdfa14.  And sure enough, when I
> > open TParser.c and TLexer.c, there is a symbol named that in both.
> >
> > Anyone have any ideas?
> 
> Those are global arrays, right? Maybe the C target should use
> different prefixes for DFAs in lexers and parsers. That's what I did
> with ObjC.
> I simply prefix all generated global symbols with the recognizer's
> name (arrays CLexer_DFA42, @class CParser_program_return, etc.) to
> work around
> this issue.
> 
> You might get away with changing the C.stg template file and sticking
> that in front of the classpath, until this issue is resolved.
> 
> cheers,
> -k
> --
> Kay Röpke
> http://classdump.org/
> 
> 
> 



More information about the antlr-interest mailing list