[antlr-interest] StringTemplate group file query
Terence Parr
parrt at cs.usfca.edu
Tue Nov 16 08:49:56 PST 2004
On Nov 16, 2004, at 4:37 AM, Sean Barry wrote:
> Hey
> In the documentation it shows how to call a file with a single
> template and how to use a group file by having the template embedded
> in the invoking Java code itself:
>
> ex.
> String templates = "group simple; vardef(type,name) ...";
> StringTemplateGroup group = new StringTemplateGroup(new
> StringReader(templates));
> What would be the java code if I wanted to put a group file in a text
> file and have it invoked by Java code in another file just like when
> invoking a single template from a file?
Try new FileReader("file.stg") rather than new StringReader and it
should work, right?
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