Getting started with the new Generic Language Support Framework (Project Schliemann)

One of the main theme of NetBeans 6.0 is going to be - the support of scripting languages. There are many scripting languages sprouting almost every day. It is not possible to keep up and provide full support for these scripting languages in the IDE. However, using a declarative syntax, it is possible to provide the basic support for editing. That is precisely the goal of Generic Language Support Framework (Project Schliemann). It provides a declarative syntax for describing a new language. It is possible to add the editing support in a progressive manner.

  • syntax coloring
  • new file templates
  • code completion
  • code folding
  • hyperlink navigation
  • structure outline
  • documentation pop up
  • ...

I was playing with the new Windows powershell to do some scripting on my laptop. I though - "Hey, why not add the Windows powershell editing support to NetBeans using the new Generic Language Support Framework!". In about few hours I had the basic functionality implemented. Here is the screen shot showing the Windows powershell script being edited in NetBeans IDE.

Windows powershell script Editor Support

Currently the module implements:

  • syntax coloring
  • new file templates

TODO

  • code completion
  • hyperlinking
  • documentation pop up
  • structure outline
  • running the script

I have uploaded the Windows powershell script Editor Support module for Netbeans  6.0 to my NetBeans update center described here.

You will need to have the Generic Language Support Framework module.

Sources

DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.

Comments:

With the new powershell grammar posted at http://www.manning.com/payette/ courtesy of Bruce Payette and Manning press do you plan to enhance support for Powershell in Netbeans?

Posted by matheesha on March 03, 2007 at 12:23 AM PST #

Matheesha,

Unfortunately the grammar at:

http://www.manning.com/payette/

is not complete. Some critical token definitions are missing. I have requested them on the powershell blog.

Yes I plan to implement the full editing support (at least) i.e. not debgging etc.

Posted by Sandip on March 03, 2007 at 06:07 AM PST #

See my request for complete and full grammar + token definitions here:

http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windows.powershell

Posted by Sandip on March 03, 2007 at 06:09 AM PST #

I have added the Run powershell script button to the editor toolbar.

Posted by Sandip on March 03, 2007 at 09:12 AM PST #

Thanks. I look forward to using Netbeans for Powershell development!

Posted by matheesha on March 03, 2007 at 06:49 PM PST #

Looks nice! However, I wanted to use this as a sample to try NBS, but I get the following error:
java.io.IOException: netbeans.org-type module not in a complete netbeans.org source root: NbModuleProject[C:\\Dokumente und Einstellungen\\Peter\\Eigene Dateien\\NetBeansProjects\\powershell]

Could You probably fix that?

Posted by Peter Nabbefeld on January 23, 2008 at 02:24 AM PST #

Post a Comment:
Comments are closed for this entry.
About

sandipchitale

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today