From 26d72ce56ed1e9066edfbb3fedd8f5570d0cb5f4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 21 Sep 2017 21:11:13 -0700 Subject: Overhaul of invocations/specs. Much cleaner and more consistent now, with less code duplication. --- lib/utils.nom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/utils.nom') diff --git a/lib/utils.nom b/lib/utils.nom index ec35c15..ff261f7 100644 --- a/lib/utils.nom +++ b/lib/utils.nom @@ -15,7 +15,7 @@ macro block [assert %condition %msg] =: ".." |end macro block [show generated lua %block] =: ".." - |compiler:writeln(\lua expr "compiler.utils.repr(compiler:tree_to_lua(vars.block.value))"\) + |compiler:writeln(\lua expr "compiler:repr(compiler:tree_to_lua(vars.block.value))"\) # String functions @@ -35,7 +35,7 @@ macro [capitalize %str, %str capitalized] =: ".." |(\%str as lua\):gsub("%l", string.upper, 1) macro [repr %obj] =: - ".."|compiler.utils.repr(\%obj as lua\) + ".."|compiler:repr(\%obj as lua\) macro [%obj as string] =: ".."|compiler.utils.repr_if_not_string(\%obj as lua\) -- cgit v1.2.3