aboutsummaryrefslogtreecommitdiff
path: root/containers.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-09-26 13:05:28 -0700
committerBruce Hill <bruce@bruce-hill.com>2018-09-26 13:05:47 -0700
commitb43432e647fbb3bb76aa2836e3899d5e407c50f9 (patch)
tree640aee09e7dafbcca53c4792d3446c7f6265e004 /containers.lua
parent692fae5416ce1f2702b599ffb27b2e3d2235eba7 (diff)
Fixed all syntax errors, got original (non-nomnom) tests passing.
Diffstat (limited to 'containers.lua')
-rw-r--r--containers.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/containers.lua b/containers.lua
index 682932f..2018581 100644
--- a/containers.lua
+++ b/containers.lua
@@ -48,6 +48,7 @@ as_lua = function(self)
return error("Not supported: " .. tostring(self))
end
local _list_mt = {
+ __type = "List",
__eq = equivalent,
__tostring = function(self)
return "[" .. concat((function()
@@ -231,6 +232,7 @@ walk_items = function(self, i)
end
end
local _dict_mt = {
+ __type = "Dict",
__eq = equivalent,
__len = size,
__tostring = function(self)