[antlr-interest] Ruby Target

Joseph Areeda newsreply at areeda.com
Sun Aug 16 11:58:58 PDT 2009


This may be totally worthless as I've only played with a few Ruby 
tutorials BUT:

Have you considered JRuby which is part of NetBeans?  It seems like you 
can call Java code directly from Ruby.  It might just be few wrappers 
for you.

Joe

Johannes Luber wrote:
>> 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
>>
>>  
>>
>>     
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090816/f751f009/attachment.html 


More information about the antlr-interest mailing list