Thank you, it works! Looks like the visitor pattern. I think I can use this
as a basis for the rework.

Greetings

Simon

On Mon, May 12, 2008 at 10:14 PM, Nathan Bubna <[EMAIL PROTECTED]> wrote:

> On Mon, May 12, 2008 at 1:10 PM, Simon Gubler <[EMAIL PROTECTED]> wrote:
> > Hi Ahmed
> >
> >  I have to say, that I don't use the velocity API, I basically scan the
> files
> >  for #foreach, #end and ${.*} or $!{.*} Expressions and list them in the
> >  outputfile. When I have time (probably next month) I will look into the
> >  velocity API. If I can use it I won't have to implement the grammar
> myself.
>
> When you do that, referencing the following might help:
>
> http://svn.apache.org/repos/asf/velocity/engine/trunk/experimental/templatetool/
>
> it's an old experiment.  i've no idea if it still works, but it had a
> similar goal.
>
> >  Greetings
> >
> >  Simon
> >
> >
> >
> >  On Mon, May 12, 2008 at 5:32 PM, Ahmed Mohombe <[EMAIL PROTECTED]>
> wrote:
> >
> >  > I think it has to know this because if you have for example
> #foreach($day
> >  > > in
> >  > > ${days}) you don't want to include the variable ${day} in the list
> but
> >  > > rather ${days}.
> >  > > Do you agree with me?
> >  > >
> >  > Of course.
> >  > I just thought that the Velocity AST is able to distinct between
> "local
> >  > variabls" like
> >  > $day and "global" ones.
> >  >
> >  >
> >  > Ahmed.
> >  >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  > For additional commands, e-mail: [EMAIL PROTECTED]
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to