opltran.exe
Command line OPL translatorThe opltran
utility provides command-line OPL translation from the PC command line. It is invoked using the opltran.bat
batch file, with up to five parameters; only one of which is mandatory.
OPL source files and include files may be in text format or native EPOC format. This allows programs developed on an EPOC machine to be transferred to and from the PC with the minimum of conversion.
opl-filename |
The name of the OPL source file to be translated. The name must be fully qualified (e.g.
Wild cards may be specified in order to translate multiple OPL files within the same directory, e.g. |
include-path |
The directory in which to search for header files. |
output-path |
The target directory for the |
-i |
Set include path. Optional, but if supplied, specifies the directory in which to search for header files. Directories are searched in the following order: first, the directory containing the opl-filename source file; second, the include-path provided by this argument, if specified; third, the directory |
-o |
Set output path. Optional, but if supplied, specifies the target directory for the If this parameter is not supplied, the output file is generated in the same directory as the source opl-filename. If the program is an OPL app, this parameter is ignored the app will be generated in directory |
-s |
Symbolic debugging information. Optional, but if supplied, causes debugging information to be incorporated in generated |
-e |
Alternate error format. Optional, but if supplied, translation errors are reported using an alternate format used by popular PC-based editors:
For example, a syntax error (error 19) at line 10, column 5 of the file would be reported as: h:\epoc32ex\ophello.opl(10) : error 19 : column 5 : Syntax error |
-q |
Quiet mode. Optional, but if supplied, reports errors only. |
Converter mode. Optional, but if supplied, converts source files from ASCII source to EPOC program file format, or visa versa. The direction of the conversion is dependent of the current source file format. When the files are converted, the first letter of the extension is also changed, e.g. in a conversion from OPL to ASCII, |
opltran
to use the native format OPL include files as supplied with the emulator in \epoc32\release\wins\deb\z\system\opl\, as well as additional generic include files stored as text or EPOC format in \epoc32\winc\opl\.opltran
will silently overwrite any existing files, so ensure you have a backup of your source code before using the tool.e.g. Error LOC::h:\epoc32ex\ophello.opl 10: Syntax error