fix test script

This commit is contained in:
Henri DF 2016-02-21 16:00:52 -08:00
parent e5637d0cee
commit 7853260f38

View File

@ -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)