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

Custom Languages

Started by mrpoopy345, 20 April 2014 - 12:39 PM
mrpoopy345 #1
Posted 20 April 2014 - 02:39 PM
Hello! So, as of recent, a lot of "new" programming languages have come out written in Lua (Novascript, LuaLua, etc.)

I was wondering one thing. In Novascript, you can do

private s = new String("Hello world!")
How exactly is this accomplished? I thought you could only add functions, but apparently not!

I have looked through the code, and call me a fool, but I cannot understand it that well.
Any help?
MKlegoman357 #2
Posted 20 April 2014 - 02:46 PM
This is how interpreteres work. They take the code and read it word by word, symbol by symbol executing what needs to be executed.
theoriginalbit #3
Posted 20 April 2014 - 02:48 PM
basically when it gets to Lua side, that entire line is interpreted to be

local a = "Hello world!"