[antlr-interest] StringTemplate for copying code from lexer rule to output code

Alan Condit acondit at ipns.com
Wed Jul 14 19:22:40 PDT 2010


Well, I fixed that problem, now on to finding the next one.

Alan
---

Alan Condit
1085 Tierra Ct.
Woodburn, OR 97071

Email -- acondit at ipns.com
Home-Office (503) 982-0906

On Jul 14, 2010, at 12:00 PM, antlr-interest-request at antlr.org wrote:

> From: Alan Condit <acondit at ipns.com>
> Date: July 14, 2010 10:49:08 AM PDT
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] StringTemplate for copying code from lexer rule to output code
> 
> 
> Jim,
> 
> I am in the process of bringing it up to date. I started with the templates that Kay had done and I don't know if Kay deleted a template that is needed or what. So I am trying to find out what template copies the actions in the Java code (since it works) so that I can figure out how to fix the ObjC code.
> 
> Alan
> ---
> 
> Alan Condit
> 1085 Tierra Ct.
> Woodburn, OR 97071
> 
> Email -- acondit at ipns.com
> Home-Office (503) 982-0906

> From: "Jim Idle" <jimi at temporal-wave.com>
> Date: July 14, 2010 8:42:51 AM PDT
> To: "antlr-interest at antlr.org" <antlr-interest at antlr.org>
> Subject: Re: [antlr-interest] StringTemplate for copying code from lexer rule to output code
> 
> 
> Alan,
> 
> Objective C has not been maintained for a long time - are you sure it is good enough for you to use? The reason it is missing from the output could be any number of reasons I am afraid :-( But start from the template that produces the rule itself and descend the hierarchy.
> 
> Jim
> 
>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of Alan Condit
>> Sent: Wednesday, July 14, 2010 6:52 AM
>> To: antlr-interest at antlr.org
>> Subject: [antlr-interest] StringTemplate for copying code from lexer
>> rule to output code
>> 
>> I have spent almost a week trying to track down a bug in the ObjC-
>> runtime/stg parsing files, only to discover that I have a problem in
>> the lexer.
>> 
>> Given this lexer rule --
>> 
>> WS  	:   ( ' ' | '\t' ) { [self skip]; } ;
>> 
>> I would expect to find
>> 	[self skip];
>> somewhere in the mWS routine in the generated lexer code.  It is
>> missing, so obviously I have changed something incorrectly. Can anyone
>> tell me which stringTemplate in Objc.stg should be doing the copying of
>> the code fragment?
>> 
>> Thanks,
>> Alan
>> ---
>> 
>> Alan Condit
>> 1085 Tierra Ct.
>> Woodburn, OR 97071
>> 
>> Email -- acondit at ipns.com
>> Home-Office (503) 982-0906
>> 
>> 
>> 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