From b43432e647fbb3bb76aa2836e3899d5e407c50f9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 26 Sep 2018 13:05:28 -0700 Subject: Fixed all syntax errors, got original (non-nomnom) tests passing. --- containers.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'containers.lua') 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) -- cgit v1.2.3