p49p0
(Panthera)
May 12, 2021, 1:53pm
#1
ITX
multi language compiler [interpreter? :flushed:] for roblox
note: all languages are vanilla
hi, my name is andrew. since i learned javascript im addicted to web API [application programming interface]s, today i made an api wrapper of wandbox that can compile multiple programming languages like lua, python, coffeescript, etc...
Functions
Only 1 Function, isn't that is enough?
ITX:Compile(code: string, compiler: string)
returns: string, string -- output, messagetype [print / error]
Asset
Get the awesome ITX module
https://www.roblox.com/library/6805732808/
Languages
lua: "lua-5.4.0", rust: "rust-head"
The end
thank you for reading this garbage, i hope you enjoyed! if you found any errors, let me know!
- andrew
4 Likes
p49p0:
ITX:Compile(code
Could you please provide an example code so we can determine how the module comes handy?
3 Likes
Ggblocks20
(TTV_Ggblocks20)
May 12, 2021, 4:22pm
#3
So this module allows you to use different (programming/scripting) languages here? Or am I getting something wrong? Code examples would also be helpful.
So can we use other programming languages on roblox with this? Or it just compiles other languages and gives us the output. Like can we convert
game.Players.LocalPlayer.Character:Destroy()
To javascript?
TopBagon
(Bagon)
May 12, 2021, 5:06pm
#5
Here you go
local module = require(PATH_TO_THE_MODULE)
local code = 'print("Hello World")'
print(module:Compile(code, 'lua-5.4.0')) -- outputs "Hello World"
GamebringerDev:
Like can we convert
No, it just compiles the code and returns the output.
I doubt there’s any use case for it though. This might be his first API wrapper so he wanted to share I guess.
1 Like
Wouldn’t this be achieved with a simple loadstring(code)
?
p49p0
(Panthera)
May 13, 2021, 12:29am
#8
the module compiles vanilla programming languages, lua vanilla dont have workspace
p49p0
(Panthera)
May 13, 2021, 12:50am
#9
like @TopBagon 's reply
local module = require(path_to_module)
local code = [[
const foo = "bar"
console.log(foo)
]]
print(module:Compile(code, 'nodejs-head'))
sad that the module is private. isnt it? wouldve loved to used this
1 Like
p49p0
(Panthera)
June 15, 2024, 4:21am
#13
it’s unusable, and it’s ONLY about 10 lines of code. i used https://wandbox.org api and it’s dead currently. not sure if it’s brought back up again.
its still up, i found the api, is it that hard to make it come back???
i might make my own module for this
1 Like