Lua code is executed in 2 stages: compiling and interpreting (that called JIT compilation). Firstly source code is compiled to Lua virtual machine bytecode and then gets interpreted.
lua is source code file, you can freely edit it with your favourite editor (i prefer Notepad++ personally). luac is a bytecode file, you should use hex editor (such as HxD) to edit VM's opcodes.