Semantic Highlighting and ANTLR Parser [message #18173] |
Mon, 19 November 2007 15:19  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03273 seconds