minify/optlex.lua

branch
lua5.2
changeset 99
2b6416334a25
parent 93
07c10f9ba77c
equal deleted inserted replaced
98:61085789b12b 99:2b6416334a25
19 -- * TODO: (numbers) warn if overly significant digit 19 -- * TODO: (numbers) warn if overly significant digit
20 ----------------------------------------------------------------------]] 20 ----------------------------------------------------------------------]]
21 21
22 local base = _G 22 local base = _G
23 local string = require "string" 23 local string = require "string"
24 module "optlex"
25 local match = string.match 24 local match = string.match
26 local sub = string.sub 25 local sub = string.sub
27 local find = string.find 26 local find = string.find
28 local rep = string.rep 27 local rep = string.rep
29 local print 28 local print
829 -------------------------------------------------------------------- 828 --------------------------------------------------------------------
830 if opt_details and opt_details > 0 then print() end -- spacing 829 if opt_details and opt_details > 0 then print() end -- spacing
831 return stoks, sinfos, stoklns 830 return stoks, sinfos, stoklns
832 end 831 end
833 832
834 return _M; 833 return {optimize = optimize}

mercurial