A Java-based project that lets you write and run scripts/projects in Perl, Lua, and Kotlin.
- Java CLI tool to run scripts in Perl (
perl_projects), Lua (lua_projects), and Kotlin (kotlin_proj) - Add your own files to the appropriate folder
- Example scripts for each language
- Java 11+ (to run this project)
- Perl, Lua, and Kotlin compilers/interpreters installed and available in your PATH
- Build the project (using Maven or your preferred method).
- Add your scripts to the corresponding folder:
- Perl:
perl_projects/ - Lua:
lua_projects/ - Kotlin:
kotlin_proj/
- Perl:
- Run the Java CLI:
java -cp target/classes com.example.MultiLangRunner - Follow the prompts to select a language and provide your filename.
To run the example Perl script:
- Select
perlas language - Enter
hello.plas filename
Same for Lua (hello.lua) and Kotlin (Hello.kt).
- For Kotlin, your
.ktfile should have amainfunction. - The script runner assumes the interpreters/compilers are in your PATH.