As a side project, I have written a full scripting language for making autonomous modes based on a script instead of redeploying code. If you're interesting in seeing, the github repo is available here ->
https://github.com/joelg236/ScriptReader/
To use it, either pull the repo or download as a zip file, and with netbeans, open the folder that contains the files as a Java project.
The ScriptReader file in src/org/reader/ScriptReader.java contains a static runScript(String) method, and you can use that to run a script. There is a main method that runs a file from the arguments run with. Use whatever you'd like.
There is a zip file that contains script examples and the jar file here ->
https://github.com/joelg236/ScriptReader/downloads
Any questions, recommendations and interesting implementation possibilities are welcome. And of course, bugs.
Thanks,
Joel