95 posts
Location
Somewhere near the local computer store?
Posted 30 December 2012 - 03:01 PM
how do I compile cc Lua to bytecode? and please don't tell me it's not a good idea
1688 posts
Location
'MURICA
Posted 30 December 2012 - 03:09 PM
I think luac comes with the default windows binaries, you can use that.
If you're not on windows, it probably comes with whatever binaries are for your OS.
95 posts
Location
Somewhere near the local computer store?
Posted 30 December 2012 - 04:22 PM
i mean with something inside of computercraft. I'm making a program compiler
8543 posts
Posted 30 December 2012 - 04:30 PM
loadstring, string.dump.
95 posts
Location
Somewhere near the local computer store?
Posted 30 December 2012 - 04:51 PM
How do I run those files. I tried dofile and loadfile but they just return an error; parrallel:20:java heap space
8543 posts
Posted 30 December 2012 - 05:57 PM
I have no idea what's causing problems with it for you. You just loadstring() whatever code you want to "compile" and then string.dump the resulting function. Then, you loadstring the dumped string again to have an executable function.
95 posts
Location
Somewhere near the local computer store?
Posted 31 December 2012 - 08:59 AM
So for my null-basic language i'm going to have to have an interpreter?