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.moon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'containers.moon') diff --git a/containers.moon b/containers.moon index 8a7d7fa..f8f678c 100644 --- a/containers.moon +++ b/containers.moon @@ -26,6 +26,7 @@ as_lua = => -- List and Dict classes to provide basic equality/tostring functionality for the tables -- used in Nomsu. This way, they retain a notion of whether they were originally lists or dicts. _list_mt = + __type: "List" __eq:equivalent -- Could consider adding a __newindex to enforce list-ness, but would hurt performance __tostring: => @@ -96,6 +97,7 @@ walk_items = (i)=> return i, Dict{key:k, value:v} _dict_mt = + __type: "Dict" __eq:equivalent __len:size __tostring: => -- cgit v1.2.3