[stringtemplate-interest] Does a Perl port exist? Anyone interested?

Terence Parr parrt at cs.usfca.edu
Tue Dec 2 10:51:11 PST 2008


On Dec 2, 2008, at 7:52 AM, Jonathan Buhacoff wrote:

> I did a quick search for a perl port on Google and CPAN and did not
> find one.
>
> If it doesn't exist yet I'd like to make it.

You're on :)

> I think the procedure would be to take the string template grammar,
> generate a perl target, then write the perl API and engine to use it,
> probably by translating Terrence's Java code for StringTemplate.

I'm not sure that the Perl target is up to snuff. Further, the  
grammars in ST have to be updated to v3; they are in v2 at the moment,  
which does not even have a Perl target. As part of my sabbatical next  
year I will be rebuilding ST.

> Or maybe I can use StringTemplate and ANTLR to make a Java-to-perl
> source translation and then just apply it to the StringTemplate
> sources?  I guess I'd have to de-compile any libraries that it uses so
> I can use the translation on those sources as well.
>
> Jonathan
> (part time comp sci student and perl fan looking for fun project!)

I'd first take a look at the Perl target and see if it works ;) If so,  
then perhaps build a Perl native version of ST that mimics the Java  
version.
Ter


More information about the stringtemplate-interest mailing list