Scriptol Php Compiler Changelog

What's new in Scriptol Php Compiler 14.10

Apr 10, 2015
  • Include statement now allows to include target files when compatible with the target language.
  • Array.store() converted to a simpler PHP code.

New in Scriptol Php Compiler 14.08 (Apr 10, 2015)

  • The dyn keyword is deprecated and replaced by var.
  • The ` or `` signs are deprecated and replaced by #.
  • The constant keyword is deprecated and replaced by const.
  • Added the super keyword to call the constructor of a superclass from an inherited class.
  • It is now possible to display arrays with the print command.
  • Added the scanDir function to get the content of a directory to an array.
  • Added the sign function.
  • Added the is_dict function.
  • Added the ord function.
  • Added the findLast method to text, to find the last occurence of a substring.
  • Dict's unshift method now has two argument, the key and the value.
  • Text's replace method was void and now returns a text.
  • Text's fill method was void and now returns a text.
  • Array's unique method was void and now returns an array.
  • The second parameter of the pad function is now mandatory.
  • The method len of text is deprecated.
  • Added a length method to array.
  • Added the toFile method to text.
  • Added fileToText and fileToArray buildtin functions.
  • When the name of a method differs from that of the class by the case only, an error message is thrown.
  • Static attributes of classes are now created with the static keyword, added in a recent version of PHP instead of the previous trick.
  • To pass a function as parameter of another function, the argument is defined with the function type, and the parameter is the name of the function without parenthesis. The define statement is now useless.
  • Added the rsort builtin function. The SORT_REGULAR and SORT_NUMERIC option are now recognized on sort and rsort.
  • For in is compiled now to foreach. This control structure was added to PHP after the compiler was designed, it is now supported.
  • Added support to binary literal.
  • Removed any support to Java. Java is used through external libraries with PHP 5.

New in Scriptol Php Compiler 14.04 (Apr 10, 2015)

  • Compiler updated for the last version of PHP (local time and GD still raises warnings in demos but this is not related to the compiler).
  • Removed the editor.
  • Removed Java and XUL files

New in Scriptol Php Compiler 7.0 (Apr 10, 2015)

  • The @ symbol is now implemented to prevent PHP functions to display warnings on Web pages.
  • Constants are now really translated to PHP constant (with the define statement).
  • Constants may be declared extern now.
  • The 'scan by' control supports only one array now for compatibilité with array_walk of PHP 5.
  • Included the FTP interface in the archive.
  • Included the Winbinder interface too.

New in Scriptol Php Compiler 6.3 (Apr 10, 2015)

  • Variables may be embedded into double-quoted strings with a $ prefix. Adding a $ prefix to the string is now deprecated.
  • XML declaration recognized. Not used for now.

New in Scriptol Php Compiler 6.2 (May 30, 2014)

  • Compatibility with PHP 5 improved.
  • Added the -4 option for compatibility of this edition with PHP 4. This is limited to the syntax, new functions are not available with the PHP 4 interpreter.

New in Scriptol Php Compiler 6.1 (May 30, 2014)

  • The date works. The usual format is date("c", x), x may be returned by time() or filetime().
  • The "c" option works only with PHP 5.

New in Scriptol Php Compiler 6.0 (May 30, 2014)

  • Compatibility with PHP 5.
  • The "match" command, previously deprecated, is no longer supported.
  • This version of the compiler is compatible with PHP 4 for now, even if a version for PHP 4 exists.

New in Scriptol Php Compiler 5.7 (May 30, 2014)

  • Double-quotes sign inside single-quoted string are now escaped in the target PHP code, as dollar and curly braces.

New in Scriptol Php Compiler 5.6 (May 30, 2014)

  • These functions are now built-in : round, filetype, exec.
  • toString method added to array.

New in Scriptol Php Compiler 5.5 (May 30, 2014)

  • These methods are now built-in:
  • opendir, readdir, closedir.
  • is_dir, is file.
  • filetype, filetime, file_exists
  • Dir.get() added to dir methods (requires dir.sol included).

New in Scriptol Php Compiler 5.4 (May 30, 2014)

  • The archive is splitted into two files, one for the Scriptol to PHP compiler, the other one for the Scriptol to C++ compiler.
  • The dir keyword is added to

New in Scriptol Php Compiler 5.3 (May 30, 2014)

  • Multi-line strings are enclosed inside ~~ .. ~~ markers and may be assigned to variables.
  • Added time() and localtime() to built-in functions.
  • For full compatibility, PHP compatible literal string are written: $"string" or $'string' and C compatible string are written: "string" or 'string'.

New in Scriptol Php Compiler 5.2 (May 30, 2014)

  • Added the input statement to the language.
  • Methods on numbers are replaced by constructors and deprecated.
  • The randomize built-in function requires one argument.
  • These functions are now built in: cos, sin, tan, acos, asin, atan, ceil, floor, log, exp, abs, sqrt

New in Scriptol Php Compiler 5.1 (May 30, 2014)

  • Overloading of both static and non static method is now allowed.
  • The reference manual has been relooked. The old tutorial is now integrated into the reference manual.
  • Added these methods to dyn: isArray, isText, isNumber, isReal, isBoolean, isNatural, isInt, isInteger, isFile.
  • Added the cat method to text.
  • Corrected bug when chaining methods.