Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Semantic Highlighting and ANTLR Parser
Semantic Highlighting and ANTLR Parser [message #18173] Mon, 19 November 2007 20:19 Go to next message
Eclipse UserFriend
Originally posted by: special1.gmx.de

Hello

I'm trying to create a DLTK based language plugin for eclipse. I have
several problems with Semantic Highlighting and the ANTLR Parser. One thing
is, that I dont't understand how the interfaces for Semantic Highlighting
should work, and what the methods are for. And the other thing is, that I
don't know wheater I need an AST for Semantic Highlighting or not. I would
be pleased if you can help me.

Thanks
Re: Semantic Highlighting and ANTLR Parser [message #18224 is a reply to message #18173] Tue, 20 November 2007 08:44 Go to previous message
Andrei Sobolev is currently offline Andrei SobolevFriend
Messages: 72
Registered: July 2009
Member
Hi Sebastian,

To add sementic highlighting you need to extend class PositionUpdater
with your implementation and return it from your TextTools class.
(Please see XOTclTextTools for example).

AST aren't required for samantic highlighting, but it very useful.
If you have position information without AST, it will be enough.

Please look at class XOTclSemanticPositionUpdater from Eclipse DLTK CVS
(org.eclipse.dltk.xotcl.ui project) as a refer implementation.

Best regards,
Andrei.

> Hello
>
> I'm trying to create a DLTK based language plugin for eclipse. I have
> several problems with Semantic Highlighting and the ANTLR Parser. One
> thing is, that I dont't understand how the interfaces for Semantic
> Highlighting should work, and what the methods are for. And the other
> thing is, that I don't know wheater I need an AST for Semantic
> Highlighting or not. I would be pleased if you can help me.
>
> Thanks
Previous Topic:Ruby dynamically added methods and some static typing
Next Topic:problem xotcl
Goto Forum:
  


Current Time: Fri Apr 26 13:57:54 GMT 2024

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

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

Back to the top