[antlr-interest] Writing Delphi Target for Antlr3

Luke A. Guest laguest at archangeli.co.uk
Sat May 26 12:08:18 PDT 2007


On Sat, 2007-05-26 at 11:51 -0700, Terence Parr wrote:
> On May 26, 2007, at 12:37 AM, service wrote:
> 
> > Dear Friends
> >
> >       I am now writing Delphi Target for  Antlr 3 . now I encounter  
> > a problem .Delphi unlike the other language (Java, C#, etc). it can  
> > not declare one variable at function body.
> 
> At the rule level I do not provide a list of all nested blocks.  I  
> could add this, but as others have suggested, I think the easiest  
> answer is to try to get Delphi to declare things within the method.

Although, having to dump out an extra block isn't the best way, depends
on how the compiler handles it, i.e. extending the stack, which is
adding overhead.

Luke.




More information about the antlr-interest mailing list