[stringtemplate-interest] Does a Perl port exist? Anyoneinterested?
Sam Harwell
sharwell at pixelminegames.com
Tue Dec 2 11:31:43 PST 2008
V3/C# ST grammars attached.
7-zip format: http://www.7-zip.org
Sam
-----Original Message-----
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Terence
Parr
Sent: Tuesday, December 02, 2008 12:51 PM
To: Jonathan Buhacoff
Cc: stringtemplate-interest at antlr.org
Subject: Re: [stringtemplate-interest] Does a Perl port exist?
Anyoneinterested?
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
_______________________________________________
stringtemplate-interest mailing list
stringtemplate-interest at antlr.org
http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: STGrammars.7z
Type: application/octet-stream
Size: 12626 bytes
Desc: STGrammars.7z
Url : http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20081202/bc58b27d/attachment-0001.obj
More information about the stringtemplate-interest
mailing list