Oy, this is such a PITA.. if I understood the compiler chain better, perhaps I'd be able to automate the conversion (a boy can dream, can't he?)
In the mean time, running the following search/replace in vim (what else?) in the following order got me about 85% of the way there:
%s/var \(.*\) : \(.*\) = \(.*\);/\2 \1 = \3;/g
%s/var \(.*\) : \(.*\);/\2 \1;/g
%s/function \(.*\)() : \(.*\)/public \2 \1()/g
%s/function \(.*\)/public void \1
%s/boolean/bool
i was too lazy to figure...
Converted Penelope's Javascript Joysticks to C# (c sharp)
In the mean time, running the following search/replace in vim (what else?) in the following order got me about 85% of the way there:
%s/var \(.*\) : \(.*\) = \(.*\);/\2 \1 = \3;/g
%s/var \(.*\) : \(.*\);/\2 \1;/g
%s/function \(.*\)() : \(.*\)/public \2 \1()/g
%s/function \(.*\)/public void \1
%s/boolean/bool
i was too lazy to figure...
Converted Penelope's Javascript Joysticks to C# (c sharp)