Mascara is a tool that translates ECMAScript 4 to classic JavaScript, thereby enabling features like type-checking, classes and namespaces in JavaScript today.
ECMAScript 4 is the next generation of JavaScript, which is beeing developed by ECMA International with participation by Mozilla, Apple, Adobe, Microsoft and others.
Try it: Write some code in the ECMAScript 4 editor below, or try some of the samples. Click Translate to generate corresponding Javascript 1.2 code.
If the fancy code editors doesn't work in your browser, try the non-fancy version
Try code sample:
Meditating...|
ECMAScript 4
|
Generated Javascript 1.2
|
|---|---|
|
Show compiler settings
|
Note: The translator is a Python program running on the server. The code is still incomplete, and will likely remain so until the ECMAScript 4 standard is stabilized.
You can already download an early release. It is however of alpha-qualiy, and only suited for the adventurous.
The fancy syntax-coloring javascript editor is courtesy of CodePress. Code samples adapted from the presentation Tamarin and ECMAScript 4 [PDF] by John Resig.
Comments to: olav@olav.dk