Skip to main content



      Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Semantic Highlighting and ANTLR Parser
Semantic Highlighting and ANTLR Parser [message #18173] Mon, 19 November 2007 15: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 03:44 Go to previous message
Eclipse UserFriend
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: Mon May 12 04:57:02 EDT 2025

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

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

Back to the top