Babylscript

Babylscript

Babylscript is a multilingual version of JavaScript/ECMAScript. With Babylscript, people are able to write computer programs in their own native languages and not just English. Keywords, objects, and functions are all available in multiple languages.

Unlike other multilingual programming languages, Babylscript allows people to write programs in a mix of different languages. A programmer can take a library written in French, mix it with their own program written in Spanish, and use code snippets they found on a Chinese help forum. Babylscript also exposes its multilingual functionality to the programmer. Programmers can write their own libraries that expose a different API depending on the language. Not only is the standard library multilingual, but programmers can make their own multilingual libraries as well.

Currently, the design of Babylscript has been completed, and an implementation has being written by modifying Mozilla's Rhino JavaScript engine. Since the implementation is a modification of Mozilla code, it is made available under the same license terms (MPL1.1 and GPL2).

Documentation

Try It in Your Browser!

We've built a simple code editor that works in your browser so that you can experiment with Babylscript without having to download or configure any code. The browser demo is a Java applet based on code from the Programming Basics website.

Translation Mappings

In different language modes, Babylscript's keywords and standard library are encoded in the appropriate language. In the English language mode, Babylscript code is identical to normal JavaScript. Below are some of the language bindings that are available for Babylscript:

Status

The basic framework for multilingual extensions have been added to Rhino. The system works, and we are now looking to create translations of Babylscript for different languages.