A port of the ArnoldC programming language to javascript.
To get started, check out the online demo.
Download and reference the latest version of the library: uncompressed or compressed.
Everything is in one javascript file with no dependencies.
To execute some ArnoldC code:
arnoldc.transpileToJsAndExecute("IT'S SHOWTIME\nTALK TO THE HAND \"hello world\"\nYOU HAVE BEEN TERMINATED")
You can also generate javascript code without executing it:
var js = arnoldc.transpileToJs("IT'S SHOWTIME\nTALK TO THE HAND \"hello world\"\nYOU HAVE BEEN TERMINATED")
The goal of this library is to exactly emulate the real ArnoldC project. So all of the documentation for the syntax in that project should apply to this one too.
Here's what a Hello World program looks like:
IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED
The output of the build process is included in this repository in the dist
directory. So you only need to build the project if you want to make any modifications.
This project is written in TypeScript and uses PEG.js to generate its parser. The build process requires Node with npm and Gulp.
To build the project, first install the development npm dependencies as specified in the project.json file:
npm install
Then run the default gulp task to build everything to a target
directory, run the unit tests, and package the final js files to the dist
directory:
gulp