| Conversion Toolkit |
|
| Overview | To
facilitiate the conversion of programs, the PxPlus
conversion utilities include a prepass that can be used
to make most common changes to you application code. The prepass itself is controled by two files:
|
||||
| File Format | The
format of the conversion lines is:
Where oldval/var is the text that will be scanned for and newval/var is the value that will be inserted instead. If the seperator is -> the replacement is a simple pure text replacement, that is all occurences of oldval will become newval. If the seperator is => the replacement will only replace a variable whose name is oldvar with newvar. The convertor assures the value is a variable by testing the characters before and after the value to make sure it is one of the following: " ;:,+/-*^( )[ ]=" To allow for function name recognition, if the last character is one of the above then the value will be considered a variable. In addition when replacing variables the number of quotes preceding the value MUST be even thus assuring that the text does not appear in a string. The Variable assignment (=>) can also be used for logical statments or other such replacements where the contents is not part of a longer text thus in many cases it is preferable over ->. A line starting with an exclamation mark ("!") is considered a comment line and is ignored by the prepass processor. |
||||
| Current system prepass.sys | The
following is a current (Feb 2006) listing of prepass.sys
|