environment.lua

changeset 3
b2df1b3f2c83
parent 2
3975fa5ed630
child 4
4cb0d1dbc65b
--- a/environment.lua	Sat Sep 12 21:27:57 2009 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-
-local hierarchy={}
-
-local function descend(hierarchy, dir)
-    local loca=hierarchy
-    string.gsub(dir, "([^/]+)", 
-        function(d)
-            loca=hierarchy[d]
-            assert(loca)
-        end)
-    return loca
-end
-
--- Tai sit vaan jokainen dokumentti ilman extensiota.
-
-function get_shortcuts(dir)
-    --local loca=descend(hierarchy, dir)
-    return {} --append(loca, append(hierarchy, {}))
-end
-
-function get_environment(dir)
-    return {
-        location=dir,
-        shortcuts=get_shortcuts(dir)
-    }
-end

mercurial