[antlr-interest] Line wrapping in generated lexer/parser

Jim Idle jimi at temporal-wave.com
Tue May 4 09:54:20 PDT 2010


It is a small bug and I run across it myself. If you are checking in generated source (and it is better to have the dependency than do this - you don't check in assembly listings from the C compiler ;-), then check in only from Unix and the code will always be the same. It probably does need to be fixed in StringTemplate, but you are not likely to get that fix too quickly I would think.

Jim 

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Richard Gildea
> Sent: Tuesday, May 04, 2010 9:25 AM
> To: Christopher L Conway
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Line wrapping in generated lexer/parser
> 
> On 4 May 2010 13:26, Christopher L Conway <cconway at cs.nyu.edu> wrote:
> 
> > Richard,
> >
> > It's generally not a good idea to check generated code into source
> > control. This is a good example of why.
> >
> 
> Ideally we would avoid placing the generated code under source control,
> however this would cause our C++/Python library to have a dependency on
> Java/ANTLR in order to be used, instead of just the runtime libraries.
> Placing it under source control ensures that other developers/users
> will
> have the up-to-date version of the parser without relying on them to
> regenerate it from the grammar.
> 
> However, I am open to suggestions as to how better to deal with this
> issue
> (and the runtime dependencies) alongside a source control system.
> 
> Thanks,
> 
> Richard
> 
> 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