15 posts
Posted 24 January 2013 - 05:07 AM
is it in anyway possible to make a program language in lua?
309 posts
Location
Sliding between sunbeams
Posted 24 January 2013 - 05:22 AM
outside of computercraft, most certainly! Take a look at Roblox for example, it uses something i believe is called Roblua, which is quite similar to lua but has a lot of extra stuff to make roblox games easily
inside computercraft, probably, but i have no idea how that would work..
1688 posts
Location
'MURICA
Posted 24 January 2013 - 05:39 AM
"Roblua" is literally just lua with more APIs, like CC lua.
It's very possible to make a programming language in lua.
Take a look at moonscript, it was made with lua.
404 posts
Location
St. Petersburg
Posted 24 January 2013 - 03:04 PM
probably best way to go about this is to create your own
bytecode system, assigning each byte to a command, and then adding argument bytes. afterword, writing an
interpreter for your scripting language and a
virtual machine to execute the bytecode should be pretty straightforward (but very time-consuming)
392 posts
Location
Christchurch, New Zealand
Posted 24 January 2013 - 03:08 PM
I don't understand why someone would want to do this.. Just program in Lua! lol
404 posts
Location
St. Petersburg
Posted 24 January 2013 - 03:18 PM
I don't understand why someone would want to do this.. Just program in Lua! lol
just as a challenge, i guess.
it can be pretty fun if you have the time and know what you're doing