[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] LuaSrcDiet 0.9.0 -- reduce source code size
- From: Kein-Hong Man <mkh@...>
- Date: Tue, 15 Feb 2005 13:11:50 +0800
Hi all,
Yet another Lua (5.0.2) utility. LuaSrcDiet reduces the size of
Lua 5 source files by removing all unnecessary whitespace and
comments. Token processing is performed and the script verifies
output correctness by running the result through its internal
work-alike Lua 5.0.2 lexer.
Initial release at: http://luaforge.net/projects/luasrcdiet/
Here is the statistics of LuaSrcDiet.lua processing itself:
Statistics for: luasrcdiet.lua -> luasrcdiet_.lua
Lexical Input Input Output Output
Elements Count Bytes Count Bytes
--------------------------------------------------
TK_KEYWORD 635 2439 635 2439
TK_NAME 1282 6004 1282 6004
TK_NUMBER 103 117 103 117
TK_STRING 253 3237 253 3237
TK_OP 1515 1657 1515 1657
TK_EOS 1 0 1 0
--------------------------------------------------
TK_COMMENT 261 11664 1 14
TK_LCOMMENT 10 3857 0 0
TK_EOL 902 902 672 672
TK_SPACE 2172 5845 334 334
--------------------------------------------------
Total Elements 7134 35722 4796 14474
--------------------------------------------------
Total Tokens 3789 13454 3789 13454
--------------------------------------------------
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia