This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
smurfofiel's profile picture

A Program Language In Lua?

Started by smurfofiel, 24 January 2013 - 04:07 AM
smurfofiel #1
Posted 24 January 2013 - 05:07 AM
is it in anyway possible to make a program language in lua?
ikke009 #2
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..
Kingdaro #3
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.
tesla1889 #4
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)
NeverCast #5
Posted 24 January 2013 - 03:08 PM
I don't understand why someone would want to do this.. Just program in Lua! lol
tesla1889 #6
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