Added default dict.
This commit is contained in:
parent
e43f60a124
commit
443f8c73bb
@ -162,6 +162,12 @@ rule [%items sorted by %key] =:
|
|||||||
|
|
||||||
# Metatable stuff
|
# Metatable stuff
|
||||||
compile [counter] to: "setmetatable({}, {__index=function() return 0; end})"
|
compile [counter] to: "setmetatable({}, {__index=function() return 0; end})"
|
||||||
|
compile [default dict] to: ".."
|
||||||
|
|setmetatable({}, {__index=function(self, key)
|
||||||
|
| t = {};
|
||||||
|
| self[key] = t;
|
||||||
|
| return t;
|
||||||
|
|end})"
|
||||||
rule [chain %dict to %fallback] =:
|
rule [chain %dict to %fallback] =:
|
||||||
when (type of %fallback) == ?:
|
when (type of %fallback) == ?:
|
||||||
* "table":
|
* "table":
|
||||||
|
Loading…
Reference in New Issue
Block a user