Skip to content

22222/ArnoldC.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArnoldC.js

A port of the ArnoldC programming language to javascript.

To get started, check out the online demo.

Quick Start

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")

Syntax

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

Build

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

About

A javascript port of the Arnold Schwarzenegger based programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.6%
  • JavaScript 46.8%
  • CSS 2.2%
  • HTML 0.4%