parser for DLTK [message #1236] |
Sun, 22 April 2007 06: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 15:48   |
Eclipse User |
|
|
|
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 #2190 is a reply to message #2139] |
Mon, 23 April 2007 06: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.15964 seconds