[antlr-interest] Ruby Target

Johannes Luber JALuber at gmx.de
Sun Aug 16 07:31:16 PDT 2009


> I am new to Antlr and Antlr Works.  I have a ruby project that uses a
> DSL and would like to replace my custom parser with an ANTLR parser.
> The problem is I cant seem to create a Ruby target.  I downloaded the
> latest ANTLR tar and installed it but it doesn't appear to have the
> required files for the Ruby Target.  I can see Perl5,C, Python and
> Javascript but no Ruby.  Where can I get the required files to create a
> Ruby Target?

Looking at <http://www.antlr.org/wiki/display/ANTLR3/Code+Generation+Targets> it seems that someone worked on a Ruby target, but gave up. To create a Ruby target you have basically to copy the Java target files and replace any Java specific code with Ruby ones. The code generation site contains two useful links for doing so.

I recommend to ask Ter for a Perforce account as the current files are already moving towards 3.2 and you would need to do less work overall.

Johannes
> 
>  
> 
> Kevin Trainer
> 
> Cnslt - Apps Prog
> 
> PT-NexOS Database Team
> 
> (818) 597-4958
> 
>  
> 

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser


More information about the antlr-interest mailing list