[antlr-interest] Re: StringTemplate enhancement question
birmanstefan
stefan at amiq.ro
Tue Jun 22 14:08:47 PDT 2004
"Sea" inside :
> Hi Stefan,
>
> Thanks for the ideas. The problem is that I don't have the pieces
of
> data in a Vector either. I'd have to create the vectors manually
and
> probably not conveniently. You're right...the parallel
arrays/vectors
> with ids and values could get out of sync.
>
> I wonder if
>
> st.setAttribute("tokens.name,type", new Object[] {"Ter","342"});
>
> is not the cleanest solution given Java's "issues" ;)
I would use this one. Maybe, instead of parsing first argument
make it like :
st.setAttribute("tokens", new Object[]{"name","type"}
, new Object[]{"Ter","342"})
just for the sake of simplicity : I don't have to build "tokens.name,.
.." and you don't have to parse it).
Stefan.
>
> Ter
> --
> CS Professor & Grad Director, University of San Francisco
> Creator, ANTLR Parser Generator, http://www.antlr.org
> Cofounder, http://www.jguru.com
> Cofounder, http://www.knowspam.net enjoy email again!
> Cofounder, http://www.peerscope.com pure link sharing
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list