Essentially, I'm building a very condensed point-and-click IDE for Java Au Naturel turtle programs. The most key part of this is my current interpreter. I've gone through and built each piece from the ground up to properly write commands to a list, then parse the list and execute the related methods.
Unfortunately, this has been something I've held together with the programming equivalent of duct tape to get my proof of concept off the ground, and now doing anything other than turtle-specific methods (think loops, variables, conditional statements) is leaving me stumped.
I've written an interpreter that uses real java syntax thus far so people can see the code and maybe even export it to work in a more traditional manner when they get comfortable. I'd like to keep it that way.
Is there perhaps a simpler way to write and run a Java program from within another one? If not, any advice or resources about writing an interpreter are greatly appreciated. Thank you ^~^
(You may recognise this question from Stack Exchange Programmers... not entirely sure how I ended up on that site instead of this one, but I am still an enthusiast, not a professional, so the question's better posed here.)
Edit: as computerfreaker already said, this is not a duplicate. I already looked at that question before posting, and mine has nothing to do with the JVM. It's not a question of what anything is. My question is whether there is an easier way to make and run a .java file from within a program, or if I should just keep trying to write an interpreter.