From 7853260f38f5a939bd5206dae248ed7cc5936f85 Mon Sep 17 00:00:00 2001 From: Henri DF Date: Sun, 21 Feb 2016 16:00:52 -0800 Subject: [PATCH] fix test script --- userspace/digwatch/lua/test.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userspace/digwatch/lua/test.lua b/userspace/digwatch/lua/test.lua index 2e67ddea..e6c0dc47 100644 --- a/userspace/digwatch/lua/test.lua +++ b/userspace/digwatch/lua/test.lua @@ -20,7 +20,9 @@ for str in string.gmatch(arg[1], "([^;]+)") do doit(str) end -compiler.parser.print_ast(state.ast) +if not (state.ast == nil) then -- can be nil if only macros + compiler.parser.print_ast(state.ast) +end os.exit(0)