luatraverse.lua

changeset 6
ab49e2e3d709
parent 5
b6d77a6cf45b
child 7
258aedad056c
equal deleted inserted replaced
5:b6d77a6cf45b 6:ab49e2e3d709
171 171
172 end 172 end
173 173
174 174
175 -- 'how' is a string that identifies the content of 'to' and 'value': 175 -- 'how' is a string that identifies the content of 'to' and 'value':
176 -- if 'how' is "iskey", then 'to' é is a key and 'value' is nil. 176 -- if 'how' is "iskey", then 'to' is a key and 'value' is nil.
177 -- if 'how' is "key", then 'to' is an object and 'value' is the name of the 177 -- if 'how' is "key", then 'to' is an object and 'value' is the name of the
178 -- key. 178 -- key.
179 function edge(env, from, to, how, value) 179 function edge(env, from, to, how, value)
180 180
181 local t = type(to) 181 local t = type(to)

mercurial