Ox language support

Post any comments, suggestions, annoyances or ideas for future releases here. Please do not post bug reports or questions here.
Post Reply
skymaster2000
Posts: 1
Joined: Fri Apr 30, 2010 10:50 am

Ox language support

Post by skymaster2000 »

I was wondering if you could add support for the Ox language. Ox is a statistical matrix language, a bit like Matlab, with syntax virtually identical (but far more limited) to C++. The key differences are:

1) filenames: programs are *.ox but header files are *.h (does this confuse Zeus)

2) typing is dynamic, variables are declared as decl myVar; so there is no need to say int myVar; or the likes.

Keywords, braces, and all the rest is like C++ so adding this language (and code folding) should be a breeze for a specialist.

I can send some sample code if that is of use. I got Zeus to recognize some of it, but code folding does not work, nor does the class browser. I am assuming it may get confused by the .h files?

Many thanks!
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I was wondering if you could add support for the Ox language.
It should definitely be possible to setup Zeus for the Ox language. Basically all you need to do is create a new document type using the Options, Document Types menu.
1) filenames: programs are *.ox but header files are *.h (does this confuse Zeus)
To have the h header file not detected as a c/c++ file the h file extension would need to be removed from the c/c++ document type and added to the Ox document type. Just edit the c/c++ document type using the Options, Document Types menu.

To tell which document type a file is using just open the file and then use the Options, Properties menu.
and code folding should be a breeze for a specialist.
I suspect Zeus could already code fold the Ox language ;)

All you need do is edit the xFolder.ini file found in the Zeus install folder and add the Ox file extension to the c/c++ code folder extension, then restart Zeus.

This will make the folder fold Ox files using the same folding rules as c/c++.
I got Zeus to recognize some of it, but code folding does not work, nor does the class browser.
To get the class browser to work you just need to setup the ctags for the Ox Language:

http://www.zeusedit.com/forum/viewtopic.php?t=3367

If you have any issues getting any of this to work let me know ;)

Cheers Jussi
Post Reply