Permalink
Browse files

Exposed the parse method (converting Processing code to JavaScript) v…

…ia Processing.parse(). It can be used like so:

  Processing.parse("float foo = 2.3; int test = (int)foo;")
  // => "var foo = 2.3; var test = 0|foo;"
  • Loading branch information...
1 parent 2f20f5a commit a4b3d0368663ec997e65ea4acaad068952ffc2a2 John Resig committed May 12, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 processing.js
View
@@ -38,7 +38,7 @@ function log()
}
}
-function parse( aCode, p )
+var parse = Processing.parse = function parse( aCode, p )
{
// Angels weep at this parsing code :-(

0 comments on commit a4b3d03

Please sign in to comment.