A window application that allows users to write and execute scripts, and then see the result of the execution in real time.
- Graphical interface is made with JavaFX.
- Scripts are run using JavaX package.
- Application currently allows using Kotlin as a scripting language but other languages can be added easily later on.
- Users can click on errors to get to the place in the script source code where they appear.
- Keywords of the scripting language are highlighted in the editor pane.
- Execution of a script can be stopped at any time.
- The result of the execution is shown in the output pane in real time.
- Start by cloning the repository and navigating to the root folder.
- Open the terminal.
- Run one of the following.
- Mac/Linux:
./gradlew build
- Windows:
gradlew build
Alternatively, use an IDE in which you can execute Gradle build
configuration.
Similarly to build
, execute run
. The application window should appear.
The application greets you with this screen:
You can see how for-loop executes and prints an index to the output pane in each iteration:
Even if no prints to out
in the script are done, the result of the script execution will still be printed. In this case, it's the value of call to foo()
:
In case there are any script errors or warnings, you can click on them and it will take you to the correct place in code:
I used RichTextFX library since there is no native JavaFX support for text areas with source code.
Developed by zkkv, 12/2023