You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Supun Kamburugamuva <su...@gmail.com> on 2007/08/05 18:41:06 UTC
Re: Including macros using #parse
I was trying to preserve everything including whitespaces incase the
call to macro does not have a macro definition. But still I couldn't
find a proper solution. I'm not a Javacc expert and if someone can
give me a hint I'd really appreciate it.
Regards,
Supun.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: Including macros using #parse
Posted by Will Glass-Husain <wg...@gmail.com>.
Hi Supun,
Seems like the right approach.
To me this seems analogous to the way we handle references. If I understand
this right, the literal text for the reference is stored at parse time. If
the reference turns out to be null then ASTReference renders the invalid
reference text. Perhaps we need a node to store the literal "potential
macro" text and do the same thing.
WILL
On 8/5/07, Supun Kamburugamuva <su...@gmail.com> wrote:
>
> I was trying to preserve everything including whitespaces incase the
> call to macro does not have a macro definition. But still I couldn't
> find a proper solution. I'm not a Javacc expert and if someone can
> give me a hint I'd really appreciate it.
>
> Regards,
> Supun.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
--
Forio Business Simulations
Will Glass-Husain
wglass@forio.com
www.forio.com