File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1616 limitations under the License.
1717]]
1818
19- -- #include "directives/define.lua"
19+ --- #include "directives/define.lua"
2020-- #include "directives/include.lua"
2121-- #include "directives/loadmod.lua"
Original file line number Diff line number Diff line change 1616 limitations under the License.
1717]]
1818
19+ -- #include "luacomp_vars.lua"
1920-- #include "ast.lua"
2021-- #include "generator.lua"
2122-- #include "directive_provider.lua"
@@ -25,7 +26,7 @@ local argparse = (function()
2526-- #include "argparse.lua"
2627end )()
2728
28- local parser = argparse (arg [0 ], " A Lua preprocessor+postprocessor." )
29+ local parser = argparse (arg [0 ], " LuaComp v " .. LUACOMP_VERSION .. " \n A Lua preprocessor+postprocessor." )
2930parser :argument (" input" , " Input file (- for STDIN)" )
3031parser :option (" -O --output" , " Output file. (- for STDOUT)" , " -" )
3132parser :option (" -m --minifier" , " Sets the minifier" , " none" )
@@ -60,4 +61,4 @@ if (args.executable) then
6061end
6162of :write (rcode )
6263of :close ()
63- f :close ()
64+ f :close ()
Original file line number Diff line number Diff line change 1+ local function _sv (k , v )
2+ _G [k ] = v
3+ -- os.setenv(k, tostring(v))
4+ end
5+
6+ _sv (" LUACOMP_V_MAJ" , 1 )
7+ _sv (" LUACOMP_V_MIN" , 0 )
8+ _sv (" LUACOMP_V_PAT" , 0 )
9+ _sv (" LUACOMP_VERSION" , LUACOMP_V_MAJ .. " ." .. LUACOMP_V_MIN .. " ." .. LUACOMP_V_PAT )
10+ _sv (" LUACOMP_NAME" , " LuaComp" )
You can’t perform that action at this time.
0 commit comments