https://github.com/aknuds1/chuckjs
JavaScript (CoffeeScript) parser for the ChucK language.
https://github.com/aknuds1/chuckjs
Last synced: 6 months ago
JSON representation
JavaScript (CoffeeScript) parser for the ChucK language.
- Host: GitHub
- URL: https://github.com/aknuds1/chuckjs
- Owner: aknuds1
- License: gpl-2.0
- Created: 2013-12-08T22:45:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T22:44:08.000Z (over 5 years ago)
- Last Synced: 2025-04-02T14:21:42.044Z (6 months ago)
- Language: JavaScript
- Size: 482 KB
- Stars: 65
- Watchers: 12
- Forks: 7
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChucKJS
[](https://greenkeeper.io/)
JavaScript ([CoffeeScript](http://coffeescript.org/)) parser for the [ChucK](http://chuck.cs.princeton.edu/)
music programming language, for execution within browsers supporting the Web Audio API (e.g. Chrome, Firefox).[](https://travis-ci.org/aknuds1/chuckjs)
This project is merely in its infancy at this stage, so don't expect too much at this point. For example,
error checking is non-existent. We're basically at the point of having implemented a minimal part of the
language, just enough to be able to execute the
[official examples](https://github.com/spencersalazar/chuck/tree/master/src/examples) we have ported so far.To see (or perhaps more importantly, hear) ChucKJS in practice, please visit our
[ChucK Demos](http://chuckdemos.com) site, which aggregates and lets you play back language demos.## Current Status as of 9.13.2014
Focus has shifted to an attempt to automatically port ChucK to JavaScript, using the
[Emscripten](http://emscripten.org) tool. See my [ChucK fork](https://github.com/aknuds1/chuck) if you'd
like to follow its progress, or perhaps even contribute.## Build
In order to build ChucKJS, you'll need an installation of [Node](http://nodejs.org/) along with
[NPM](https://npmjs.org/). If you haven't already installed [Grunt](http://gruntjs.com), install it system-wide:npm install -g grunt-cli
Then, within the ChucKJS project root, install its dependencies (beneath the project root) via NPM:
npm install
After doing this, you should be able to build ChucKJS, by running grunt:
grunt
At this point, the parser has been built as lib/chuck/parser.js. CoffeeScript source files (in src/) are also
compiled to JavaScript beneath lib/. Additionally, ChucKJS and its dependencies are built into the file
examples/js/chuck.js, for the benefit of the examples within the examples/ directory. At this stage, you
should be able to try the examples, e.g. examples/example1.html.## Test
There are self-contained example HTML files beneath the examples/ directory, which you are encouraged to try
out. In addition to these, ChucKJS is automatically tested via [Karma](http://karma-runner.github.io/).
Run these tests as follows:karma start
## Donating
Support this project and [others by Arve Knudsen](https://www.gittip.com/Arve%20Knudsen/) on Gittip.
[](https://www.gittip.com/Arve%20Knudsen/)