[antlr-interest] Outputing SQL with "StringTemplate"
Terence Parr
parrt at cs.usfca.edu
Tue Nov 9 09:44:25 PST 2004
On Nov 9, 2004, at 9:08 AM, Sean Barry wrote:
> Hey
> This is a bit general but does anyone have an example or a link to an
> example of a template using antlr's template
> engine "StringTemplate" for outputting SQL in a parser.
Do you mean besides the simple stuff I have in the manual like the
following?
StringTemplate query =
new StringTemplate("SELECT $column; separator=","$ FROM $table$;");
query.setAttribute("column", "name");
query.setAttribute("column", "email");
query.setAttribute("table", "User");
Is that enough to get you started?
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!
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