I haven’t seen many languages implemented in PHP. J4P5 “is a JavaScript interpreter written in PHP 5, that allows to run untrusted scripts in a sandbox on your server. It aims to implement most of Ecma-262 3d edition.”

J4P5 uses a modified version of the CFG parser of the MetaPHP project, and is licensed under the GPL

This project is new. The current version already exposes most of the features commonly associated with JavaScript, such as objects, prototypes, closures.

Notable caveats of this version (aka “the TODO list”):

  • No support for unicode strings
  • No support for regular expressions
  • Semi-colons at the end of statements are not optional
  • Most of the pre-defined objects/methods have not been tested
  • The speed is definitely slower than PHP. It’s getting better though.

Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/133266589/j4p5-javascript-interpreter-written-in-php-5

Leave a Reply

You must be logged in to post a comment.



Site Navigation