[antlr-interest] StringTemplate group file query

Sean Barry seanharteb at yahoo.co.uk
Tue Nov 16 04:37:17 PST 2004


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?
Regards
Sean

		
---------------------------------
Moving house? Beach bar in Thailand? New Wardrobe? Win £10k with Yahoo! Mail to make your dream a reality.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20041116/815a25c2/attachment.html


More information about the antlr-interest mailing list