.com Solutions Inc. has released FmPro Migrator Platinum Edition 5.46 with PHP and BASIC to revTalk Conversion Features. The BASIC and PHP to revTalk conversion features included with FmPro Migrator Platinum Edition help automate the conversion of PHP and BASIC code into the Rev development platform. Rev and the revTalk language can be used to deploy applications to MacOS X, Windows and Linux desktops, as a Web browser plug-in revLet, the server and mobile devices (including the iPhone with revMobile).
FmPro Migrator traverses all subdirectories of a selected top-level source directory and converts all of the PHP or BASIC files which it finds. The converted revTalk code is either saved as an .irev file in the destination directory, or as a card script assigned to a card within a new Rev stack file. The high performance conversion process is able to process hundreds of files within a matter of seconds, saving many hours of boring and tedious manual labor.
The PHP to revTalk conversion features include:
* PHP Variable Conversion – The $ character is removed from PHP variables and the variable name is checked to determine if it conflicts with an existing Rev keyword or function name. Conflicting variable names are changed by adding an underscore character to the end of the name.
* php tags are converted to rev tags – The rev tags will be usable within .irev files but will be removed if the code is being saved into a Rev stack. Code outside of php tags is assumed to be HTML code and it is either passed thru without changes within .irev files or it is commented out within Rev stack code.
* Trailing Semicolon And Curly Bracket Removal – Each complete PHP instruction is terminated with a semicolon which is removed during the conversion. Code blocks including conditionals and Try/Catch statements are bracketed with curly braces, which either get removed or replaced with the appropriate revTalk instruction.
* Commonly Used Keyword Conversion – Keywords such as IF, ELSE, TRY/CATCH, REQUIRE, SPRINT, WHILE are converted into the equivalent revTalk instruction.
* Commonly Used Function Conversion – Some built-in PHP functions including trim(), strlen(), printf(), strtolower() and strtoupper() have direct equivalents in revTalk so these are converted accordingly.
* PHP Operator Conversion – PHP operators including = =, = = =, ++, – -, &&, and || have direct equivalent operators or replacement keywords which are used in revTalk.
* Custom Function Conversion – revTalk functions don’t use parenthesis surrounding the parameter list and don’t need to have opening and closing curly brackets so these are removed. The closing curly bracket is replaced with the end keyword followed by the name of the function.
* Multi-line HERE Document Code – PHP scripts often include blocks of text/HTML containing variables which are evaluated and placed into a variable. The HERE document spans multiple lines and is converted into a single line revTalk put statement.
* Code Indenting – Code indenting and comments are retained from the original code in order to improve the readability and maintainability of the converted code. However you can easily reformat the code by clicking the TAB key within the editor in the Rev IDE.
The BASIC to revTalk conversion features include:
* Support for Multiple Versions of BASIC – BASIC syntax from a variety of development environments is supported, including (but not limited to) : Visual Basic, VBScript, VBA, PowerBasic, ZBASIC/FutureBasic and RealBasic.
* BASIC Variable Conversion – BASIC variables on the left side of an assignment operator or within a DIM statement are converted to revTalk variables by removing trailing data type characters. Conflicting variable names are changed by adding an underscore character to the end of the name.
* tags are added to the file so that it will be executable by the On-Rev web server.
* Commonly Used Keyword Conversion – Keywords such as DIM, LET, FOR/NEXT/LOOP/WHILE, SELECT/CASE, FUNCTION/SUB are converted into the equivalent revTalk commands.
* Custom Subroutine and Function Definition Conversion – Subroutines and functions are converted into revTalk “on HandlerName/function FunctionName” definitions closed with “end HandlerName/FunctionName”.
* Commonly Used Function Conversion – Some built-in BASIC functions including Trim(), Len(), Exit, Inc/Dec, LCase(), UCase(), XOr are converted directly into the equivalent revTalk functions.
* SELECT CASE Statement Conversion – SELECT CASE code is converted into revTalk SWITCH code with a “break” keyword added to close each CASE block.
* Code Indenting – Code indenting and comments are retained from the original code in order to improve the readability and maintainability of the converted code.
Demo Mode and demo revLets – By default, FmPro Migrator Platinum Edition processes 5 scripts of unlimited length in demo mode without a license key. Also, each of the detailed info pages include a demo revLet which converts PHP or BASIC code to revTalk within a web browser.
Pricing and Availability:
FmPro Migrator Platinum Edition is priced at ($600) per developer and includes a copy of FmPro Migrator Platinum Edition for both MacOS X (Universal Binary) and Windows platforms. Existing FmPro Migrator Developer Edition customers may upgrade to FmPro Migrator Platinum Edition for $400.