From 7087dc5151fd08e8fc64ab2b6d3248ff0f13c271 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Sep 2017 17:08:35 -0700 Subject: Disabled serializing functions until it works. --- nomsu.moon | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nomsu.moon') diff --git a/nomsu.moon b/nomsu.moon index 1c56897..1a0b370 100755 --- a/nomsu.moon +++ b/nomsu.moon @@ -155,6 +155,8 @@ class NomsuCompiler return invocations, arg_names defmacro: (spec, lua_gen_fn, src)=> + if @debug + @writeln("DEFINING MACRO: #{spec}#{src or ""}") invocations,arg_names = @get_invocations spec fn_info = {fn:lua_gen_fn, :arg_names, :invocations, :src, is_macro:true} for invocation in *invocations @@ -173,6 +175,7 @@ class NomsuCompiler serialize: (obj)=> switch type(obj) when "function" + error("Function serialization is not yet implemented.") "assert(load("..utils.repr(string.dump(obj), true).."))" when "table" if utils.is_list obj -- cgit v1.2.3