Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Code Completion

3 views
Skip to first unread message

David K

unread,
Dec 22, 2009, 1:57:08 AM12/22/09
to
Hi Fols,

can anyone suggest a development environment that will perform code
completion of Scilab objects ? ie ObjectName.(list of member functions)

thanks and Merry Xmas

David


Francois Vogel

unread,
Dec 22, 2009, 3:54:41 PM12/22/09
to
David K said on 22/12/2009 07:57:

> can anyone suggest a development environment that will perform code
> completion of Scilab objects ? ie ObjectName.(list of member functions)

I don't know any such environment. But you give me an idea for Scipad.
This could be developed, it's not very hard to do. Added on my <TODO>
list, thanks for the idea!

Francois

David K

unread,
Dec 23, 2009, 6:20:40 AM12/23/09
to
Hi Francois,

in 'a previous life' I was using Borlands JBuilder to write Java code. It
had a 'CodeInsight' function that presented member finction of objects once
you placed a '.' after the object. Very useful if you are not familiar with
the library and need to quickly understand the extent of the objects member
functions, data members etc (1)

I've just found an opensource project called NotePad++ that can do
autocompletion based on an xml file - see (2). It appears to handle matlab
files, so how how would you modify it to handle scilab files ?

Having this feature you very quickly could build up an object model in UML
for the language itself .

regards

David


(1) JBuilder Coding Shortcuts
http://www.ida.liu.se/~TDDB62/introjb/envcoding.html

(2) Auto-completion HOWTO :
http://notepad-plus.sourceforge.net/uk/auto-completion-HOWTO.php


"Francois Vogel" <fsvogeln...@free.fr> wrote in message
news:4b31321a$0$6072$426a...@news.free.fr...

Francois Vogel

unread,
Dec 23, 2009, 8:16:50 AM12/23/09
to
David K said on 23/12/2009 12:20:

> I've just found an opensource project called NotePad++ that can do
> autocompletion based on an xml file - see (2). It appears to handle matlab
> files, so how how would you modify it to handle scilab files ?

Well, the syntax in the xml files describing the keywords in notepad++
is straightforward (check it!).

Despite I didn't try I think you can easily create such a file for
Scilab. Populating the xml file can even be done automatically by a
Scilab script, which would be better for two reasons at least:
- it's clumsy to do by hand
- it allows easy sync with Scilab (new keywords are added from time
to time, and some others are occasionally removed)

No, I won't do it for you...

Francois

0 new messages