Is there anything out there which can parse and translate from one type of code to another?
I am writing an app for my mobile phone and find the Java code very tedious to enter. so I want to essentially write code in a simplified form and have a parser convert it to the Java equivalent ..
I am spending toooo much time trying to keep the compiler happy at the moment. If I forget just one ";" somewhere the compiler complains about unexpected source code so I end up trying to find where the missing ; is supposed to go
my simple code
Java equivalent
I am writing an app for my mobile phone and find the Java code very tedious to enter. so I want to essentially write code in a simplified form and have a parser convert it to the Java equivalent ..
I am spending toooo much time trying to keep the compiler happy at the moment. If I forget just one ";" somewhere the compiler complains about unexpected source code so I end up trying to find where the missing ; is supposed to go
my simple code
for x=1 to 10 if x=4 drawimage blah,5,2 else print "hello" end next if myval=0 cls
Java equivalent
for (int x=1;x<11;x++){ if (x=4){ image(blah,5,2); }else{ println ("hello"); } } if (myval==0) {background(0);}