What a about a tool for OPL programming ? Sounds good ? And if it is
written in OPL ? Yeah, it is true !
OPL Wizard is my new OPL application, running on Nokia 92xx machines.
The current version is v0.40 beta, but I think it is stable and
(potentially) useful enough for other OPL programmers.
OPL Wizard is a freeware tool for OPL programming. It is aimed to help
the OPL community developing to Epoc and Symbian OS. OPL Wizard
comprises statistics tools, aiding tools to convert ER5<->ER6 OPL code
and reformatting tools.
Current features of OPL Wizard:
- opening of text files in Unicode format, ASCII-DOS and ASCII-Unix;
- browsing with many options (full screen and zoom mode, go to line,
show cursor coordinates, etc);
- statistics reports about the OPL source code, in multi-line and CSV
formats, with approx. 20 fields (like number of lines, procedures,
variables, IF, WHILE, etc);
- saving of the statistics results in Unicode or ASCII-DOS format.
See the homepage of OPL Wizard (still a very simple HTML code) :
http://www.RobertoColistete.net/OPLWizard
The "ReadMe.txt" shows that there are many planned features to come,
and comments and suggestions from the OPL community are welcome.
Best regards,
Roberto
Roberto,
Great!!!
I need to try it out a little bit more before I give you more comments, but taken alone, the feature to be able to import a OPL ER3-5 file into OPL ER6 and handle it intelligently is worth it alone. Saves a lot of time.
One could include some convention in order to differ between REMs which are true comments (meant to remain) and REMs which are temporary. We use small letter 'rem' for the latter.
One could have a tool for checking ER3-5 OPX calls and change them to the corresponding ER6 OPX calls and vice verse including the INCLUDEs. I think that should be relatively simple to do. Then of course you have to give warnings whenever an OPX cannot translate, e.g. MediaServerOPX and Convert.opx in ER6 and any of the 3rd party OPXs in ER5, e.g. MbmView.opx, Macro5.opx or Gprinter.opx.
Another warning could be any suspected management of text buffers. This one is of course more difficult.
cheers
Martin
Hi Martin and everybody,
Thanks for the comments.
About the ER5<->ER6 tool, yes, there will be preferences allowing the user to specify the type of "REM" to include (REM ***OPL Wizard*** Begin Comments, or REM Look at here !, etc), so the user will be to use a text editor "Find" to locate the REM's added by OPLWizard.
The ER5->ER6 will come first, checking the "System.oph" calls, toolbar functions, modified constants, etc.
But I am working now to finish the statistics report including procedure callings and support for OPL+ source code (my "Smuggers" source code is written in OPL+), to release the version 0.45. The version 0.50 will have a first implementation of the ER5->ER6 conversion tool. I am depending on this version to begin porting some ER5 OPL code to ER6 as a real test... 😊
By the way, does anybody know how to display the right arrow used by "TextEd" on the left margin of the current line ? I.e., which font to use with gFont ?
Best regards,
Roberto
Hi folks,
New release of OPL Wizard, version v0.45 beta, with additional features :
- the options of Global and PROC's statistics preferences about
procedure calls are implemented, giving statistics and listings of
procedure calls origins (calls from) and destinations (calls to);
- added options to Global and PROC's statistics preferences about
unused constants, global and local variables, to be implemented on a
future version;
- there is an option to run 1, 2 or 3 statistics passes. To be able to
list the PROC's calls, it needs 3 passes;
- added statistics of LABEL's;
- added statistics of BREAK/CONTINUE;
- added a 'Find' capability to the 'View' menu pane;
- the vertical browsing is optimized (faster) and the horizontal
browsing now works;
- added a right arrow cursor on the left of the current line;
- corrected a small bug when no file was open: the cursor and zoom are
now disabled.
The nOPL+ support is still lacking because I have implemented some
features originally planned to become later (horizontal browsing, etc),
or not planned at all ('Find'😉.
Next stop: aiding tools to convert Epoc Release 5 to Symbian OS v6.0 OPL
code. OPL Wizard will read a text file describing the conversions and
their comments to be inserted in REM lines. So, the user will be able to
modify and expand the database of differences among EPOC/Symbian OS
versions.
Cheers,
Roberto
Good news for us, OPL programmers,
OPL Wizard v0.50 Beta for Nokia 9200 Series Communicator is released !
http://www.robertocolistete.net/OPLWizard/
The main new feature is the OPL convert tool that helps the conversion of OPL/nOPL+ source code from EPOC32 to Nokia 9200 Series (Series 60, UIQ,
Series 90, etc. in the future) by inserting 'REM' comments pointing to the parts of the code which need rewriting or verification on a Nokia 9200.
The "\System\Apps\OPLWizard\RulesEpoc32toNokia9200.txt" converting rules file is included, with 349 rules and almost a thousand lines. It obviously targets Epoc32 -> Nokia 9200 OPL conversion, and you are free to edit this text file, contribute to the OPL Wizard distribution, etc.
I hope that the OPL developers will create other converting rules files and
send them to be included in the OPL Wizard distribution.
I also expect
Nokia 9200 -> Series 60
Nokia 9200 -> UIQ
OPL converting rules to be ready in the following weeks.
Greetings from Brazil,
Roberto
I have uploaded OPL Wizard 0.50(2) with some small changes :
- different default preferences : ASCII-DOS to save and "REM -+- " as REM comments
for the converting tool;
- added comment lines in the end of RulesEpoc32toNokia9200.txt file;
- correct some messages when saving the converted source code (instead they were
showing statistics report saved);
- the percentage is shown as nn.d% during the source code conversion.
IMO, they are not important enough to post a 0.51 version (with updated docs, web page, etc.)...
Roberto
Hi,
There is a new "RulesNokia9200toUIQ.txt" converting rules file, it is a first version
with only 15 rules but covering the main problems that avoid compilation or running of your OPL program converted from Nokia 9200 to UIQ.
Please feel free to collaborate by sending new rules to me.
OPLWizard is already running on UIQ emulator, I have just to improve the interface and UIQ look&feel and then it will be announced.
Greetings,
Roberto
Hi,
New release of OPL Wizard, for Nokia 92xx and UIQ devices (including the Win32 emulators). It is released on
www.PocketIQ.com
and
www.robertocolistete.net/OPLWizard/
Version 1.00 (16/03/2004):
- first non-Beta version;
- first UIQ release, including stylus and jog-dial support;
- the initial screen shows the PocketIQ info;
- addition of Epoc32(ER5)->UIQ conversion;
- date&hour are included in the beginning&end of the statistics report and
converted source code.
There are now 3 converting rules files: from EPOC32 to Nokia 9200 Series, EPOC32 to UIQ and Nokia 9200 to UIQ.
Roberto