I think it would be cool to select different languages in the script editor that compile to Lua, such as moonscript or clue. Check for language binaries on system and just spawn command processes. (list all available languages in a dropdown but disable ones that we can't find a binary for). Maybe look in ~/frostbyte/binaries/[language] before just checking PATH?
- moonscript - use -p option to print to stdout. syntax errors will result in exit code 1 and output in stderr
- clue - on success, starts with "Compiled Lua Code" -- just ignore first and last lines of output; on failure, starts with "Error in" and results in exit code 1
I think it would be cool to select different languages in the script editor that compile to Lua, such as moonscript or clue. Check for language binaries on system and just spawn command processes. (list all available languages in a dropdown but disable ones that we can't find a binary for). Maybe look in ~/frostbyte/binaries/[language] before just checking PATH?