parser for DLTK [message #1236] |
Sun, 22 April 2007 10:11 |
Eclipse User |
|
|
|
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 |
Mark Howe 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 |
Eclipse User |
|
|
|
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 #2190 is a reply to message #2139] |
Mon, 23 April 2007 10:07 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.25027 seconds