minify/optparser.lua

branch
lua5.2
changeset 99
2b6416334a25
parent 94
cf209451be5f
equal deleted inserted replaced
98:61085789b12b 99:2b6416334a25
28 ----------------------------------------------------------------------]] 28 ----------------------------------------------------------------------]]
29 29
30 local base = _G 30 local base = _G
31 local string = require "string" 31 local string = require "string"
32 local table = require "table" 32 local table = require "table"
33 module "optparser"
34 33
35 ---------------------------------------------------------------------- 34 ----------------------------------------------------------------------
36 -- Letter frequencies for reducing symbol entropy (fixed version) 35 -- Letter frequencies for reducing symbol entropy (fixed version)
37 -- * Might help a wee bit when the output file is compressed 36 -- * Might help a wee bit when the output file is compressed
38 -- * See Wikipedia: http://en.wikipedia.org/wiki/Letter_frequencies 37 -- * See Wikipedia: http://en.wikipedia.org/wiki/Letter_frequencies
439 end 438 end
440 local afteruniq = preprocess(localinfo) 439 local afteruniq = preprocess(localinfo)
441 ------------------------------------------------------------------ 440 ------------------------------------------------------------------
442 end 441 end
443 442
444 return _M; 443 return {optimize = optimize}

mercurial