Toast has support for the Oracle Nashorn JS engine, which integrates directly with the JVM.
https://github.com/Open-RIO/ToastAPI
You can write your robot program in .js files and we provide some common hooks to things like motors, logging and other stuff