richardhundt / shine

A Shiny Lua Dialect
Other
231 stars 18 forks source link

how to distinguish Shine code or lua code? #73

Open miketang84 opened 9 years ago

miketang84 commented 9 years ago

hi, my test: save this line in 1.lua print ('xxx' .. 'uuu')

i use

shine 1.lua

it print xxxuuu

but i use

shinec 1.lua  output

and run shine output , it print Range(xxx, uuu)

how do distinguish them? only by the file extension ? and how to specify the shinec to compile lua code?

Thanks.

richardhundt commented 9 years ago

Hi, shinec currently only compiles Shine code. If you want to produce bytecode from a Lua source, then use LuaJIT 2.0.x to compile Lua to bytecode and then load that with Shine.