Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » parser for DLTK
parser for DLTK [message #1236] Sun, 22 April 2007 10:11 Go to next message
Eclipse UserFriend
Originally posted by: a.wyde.hotmail.com

Hello,
I have read "A guide to building a DLTK-based language IDE" from
http://wiki.eclipse.org/index.php/DLTK_IDE_Guide.

In the section "Extending Source Element parser to build correct model" it
is said "As you can notice, it is possible to use any kind of parser with
DLTK. For our python implementation we use ANTLR parser, for JavaScript
RHINO, for Ruby JRuby." My question is, how do I have to design a parser
for any other language? I assume it is not "possible to use any kind of
parser", since it has to communicate with DLTK.

Probably the key to the answer would be the ISourceElementpParser interface,
mentioned in the section "Creating source element parser". Does any
documentation exist on this interface?

Best regards,
Andy
Re: parser for DLTK [message #1262 is a reply to message #1236] Sun, 22 April 2007 19:48 Go to previous messageGo to next message
Mark Howe is currently offline Mark HoweFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Andy

It is possible to use any parser, but you have to write a converter that transforms your parsers AST
to DLTK's AST (ie DLTK's ASTNode and subclasses). RubyASTBuildVisitor is the Ruby example.

Cheers
Mark

Andy wrote:
> Hello,
> I have read "A guide to building a DLTK-based language IDE" from
> http://wiki.eclipse.org/index.php/DLTK_IDE_Guide.
>
> In the section "Extending Source Element parser to build correct model" it
> is said "As you can notice, it is possible to use any kind of parser with
> DLTK. For our python implementation we use ANTLR parser, for JavaScript
> RHINO, for Ruby JRuby." My question is, how do I have to design a parser
> for any other language? I assume it is not "possible to use any kind of
> parser", since it has to communicate with DLTK.
>
> Probably the key to the answer would be the ISourceElementpParser interface,
> mentioned in the section "Creating source element parser". Does any
> documentation exist on this interface?
>
> Best regards,
> Andy
Re: parser for DLTK [message #1283 is a reply to message #1262] Sun, 22 April 2007 22:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.wyde.hotmail.com

Mark Howe wrote:

> Hi Andy
>
> It is possible to use any parser, but you have to write a converter that
> transforms your parsers AST to DLTK's AST (ie DLTK's ASTNode and
> subclasses). RubyASTBuildVisitor is the Ruby example.

Well, if I could get the sources, that example might be useful. However
neither the CVS at :pserver:anonymous@eclipsedltk.org:/opt/org.eclipse.dltk
contains any files nor does the ruby download
http://download.xored.com/dltk/3.3/S-1.0M4-200701030724/ecli pse-dltk-ruby-1.0M4.zip
contain the sources.

I doubt that DLTK will be of use to the eclipse community beyond running the
example languages, if there is no class documentation and even the download
location of the sources is not publically available.

Andy
Re: parser for DLTK [message #2139 is a reply to message #1283] Mon, 23 April 2007 01:15 Go to previous messageGo to next message
Mark Howe is currently offline Mark HoweFriend
Messages: 14
Registered: July 2009
Junior Member
The sources are at:

Host: dev.eclipse.org
repo path: /cvsroot/technology

Mark

Andy wrote:
> Mark Howe wrote:
>
>> Hi Andy
>>
>> It is possible to use any parser, but you have to write a converter that
>> transforms your parsers AST to DLTK's AST (ie DLTK's ASTNode and
>> subclasses). RubyASTBuildVisitor is the Ruby example.
>
> Well, if I could get the sources, that example might be useful. However
> neither the CVS at :pserver:anonymous@eclipsedltk.org:/opt/org.eclipse.dltk
> contains any files nor does the ruby download
> http://download.xored.com/dltk/3.3/S-1.0M4-200701030724/ecli pse-dltk-ruby-1.0M4.zip
> contain the sources.
>
> I doubt that DLTK will be of use to the eclipse community beyond running the
> example languages, if there is no class documentation and even the download
> location of the sources is not publically available.
>
> Andy
>
Re: parser for DLTK [message #2190 is a reply to message #2139] Mon, 23 April 2007 10:07 Go to previous message
Eclipse UserFriend
Originally posted by: a.wyde.hotmail.com

Mark Howe wrote:

> The sources are at:
>
> Host: dev.eclipse.org
> repo path: /cvsroot/technology

Thanks. Is there a reason why the documentation inside the sources is not
made available for online browsing? Even if it's rather minimal, it will
help other people contribute to dltk.

Andy
Previous Topic:javascript functionality available?
Next Topic:Rails for DLTK?
Goto Forum:
  


Current Time: Fri Apr 19 16:37:41 GMT 2024

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

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

Back to the top