Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Java ASTNode Visitor for RUBY parser question
Java ASTNode Visitor for RUBY parser question [message #1697717] Sun, 07 June 2015 06:49 Go to next message
Arji Juan is currently offline Arji JuanFriend
Messages: 1
Registered: June 2015
Junior Member
searched high and low and can't seem to find the answer or any examples.

I am using Java ruby DLTK

I want to parse a string that has Ruby source code (.rb file). I am using it this way:

JRubySourceParser jRubyParser = new JRubySourceParser();
ModuleDeclaration result = jRubyParser.parse(getSampleStr());
ASTNode parent = result.getChilds().get(0)

Now I am stuck. I don't know how to traverse the ASTNode using a visitor. I don't want to use getChilds.

The end goal is, to get all Method Names, Classes, require files, include files, and make them into a visible tree (which I already know how to).

Is there any examples that I have missed?

Thank you.
Re: Java ASTNode Visitor for RUBY parser question [message #1776104 is a reply to message #1697717] Sat, 11 November 2017 02:33 Go to previous message
James Rinkevich is currently offline James RinkevichFriend
Messages: 2
Registered: November 2015
Junior Member
The jruby parser is now actually a (jruby) gem. The home page for the project is
Previous Topic:DTLK or Shelled
Next Topic:Installation of DLTK Python IDE on Oxygen.2
Goto Forum:

Current Time: Tue Oct 27 07:55:36 GMT 2020

Powered by FUDForum. Page generated in 0.02227 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top