Processing.js source code
I’m enabling the private keyword to be usable in Processing.js, bug number #133.
Last post I mentioned how I would just need to use the basis behind the public keyword, that I could just “flip that”, whatever that meant… I figured if public is working in Processing.js, the same concepts could be applied to private. Oh, how wrong I was.
private int i; //Java
I believe this is the concept. I should find where in the source a public variable is converted.
public int i;
and add a regex that does this feature, but with private.
// Remove end-of-line comments
aCode = aCode.replace( /\/\/ .*\n/g, “\n” );
I’m going to replace instances of private with a regex in this manner.
I also must consider private functions, so a small check list, of things to consider.
- Consider private member functions
- Consider private member variables
- Consider variations in the syntax
That seems to be all for now, I don’t think getting something working is going to take much longer, hopefully it’ll be done by Wed night.