This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function exec(str) | |
local f, err = io.popen(str .. " 2>&1", "r") | |
if not f then return nil, err end | |
local str, err = f:read("*all") | |
f:close() | |
if str then return str end | |
return str, err | |
end | |
local WINVER = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------ | |
-- Общие функции для работы с деревом -- | |
------------------------------------------------ | |
local default_compare = function(lhs, rhs) return lhs == rhs end; | |
local default_char_set = {'0','1','2','3','4','5','6','7','8','9'}; | |
local INVALID_VALUE_ALWAYS_NIL = {} | |
--Удаляет все пустые ветви в дереве | |
local pack_empty |
NewerOlder