ANTLR Based Processing to JavaScript Converter
From Open Source@Seneca
Contents |
Project Description
Write an ANTLR v3 grammar that translates Processing code into JavaScript.
Project Leader(s)
Project Contributor(s)
n/a
Project Details
The Processing.js project is working on porting Processing to JavaScript. Currently, it utilizes a series of regular expressions in order to parse the code into JavaScript. However, this current method is brittle.There is an ANTLR v2 based Java grammar that translates Processing to Java. When ANTLR v3 came out, it had JavaScript added as a new target language (a language it could translate to), enabling ANTLR to translate languages to JavaScript. The JavaScript target is still in beta state, has a few bugs, but is passing many test suites. Short-term, the regular expression parser will work out. Long-term, a stand-alone converter based on ANTLR would be nicer. What I’ll be doing this semester is writing the grammar (the set of rules) needed to translate Processing to JavaScript, thus creating the converter.
Project News
Jan 30th, 2010 - Initial Project Plan Posted Here!
