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

lc -- a lua compiler

Started by syfygirl, 02 January 2015 - 06:59 PM
syfygirl #1
Posted 02 January 2015 - 07:59 PM
lc is a lua compiler.

usage <lc -o <output file> <input>>

you can also compile multiple files together into one.

usage <lc -o <output file> <input1> <input 2>>

you can also compile a directory with unlimited recursive searching.

usage <lc -d <output file> <input directory>>

to run it you have to use the command: <lc -r <compiled program>>, in the future i might embed code to make it run without lc. changed it, it now does this

to install: pastebin get mHBQPKrM lc

if you have any questions just ask i will answer/fix
Edited on 02 January 2015 - 11:50 PM
doublequestionmark #2
Posted 02 January 2015 - 10:46 PM
Great Job!
syfygirl #3
Posted 03 January 2015 - 12:08 AM
Great Job!

Thanks, actualy i wrote it so that people don't have to deploy multiple files, i am working on a way so that people can run it without lc
oeed #4
Posted 03 January 2015 - 07:20 AM
It's a good start, but at this stage it seems to stick all the files into one big file, which in some circumstances could be useful. However, if you're using os.loadAPI then it doesn't work. Maybe try and see if you can figure out how to get that to work.
Edited on 03 January 2015 - 06:21 AM
syfygirl #5
Posted 03 January 2015 - 03:19 PM
It's a good start, but at this stage it seems to stick all the files into one big file, which in some circumstances could be useful. However, if you're using os.loadAPI then it doesn't work. Maybe try and see if you can figure out how to get that to work.
What do you mean?