[antlr-interest] Writing Delphi Target for Antlr3

Jim Idle jimi at temporal-wave.com
Sun May 27 10:38:08 PDT 2007


Not sure you are going to be able to get around this like that then. One
thought is that you could declare an array of those variables that would
be 'big enough' and then use the decision number to reference the array.
If Ter added the number of decisions as an input, if it isn't already
then you could even declare an array of the correct size. I think that
all the information is there to do that.

Jim

> -----Original Message-----
> From: service [mailto:service at sharpplus.com]
> Sent: Saturday, May 26, 2007 5:48 PM
> To: Jim Idle
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Writing Delphi Target for Antlr3
> 
> 
> no, Delphi does not allow such syntax.
> 
> best regards
> Chin Shou
> >  It's been some time since even looked at a Pascal program, but does
> it
> >  allow:
> >
> >  var
> >    x: Integer;
> >    begin
> >  var
> >    y: Integer;
> >  begin
> >  ...
> >  end
> >    end



More information about the antlr-interest mailing list