AST: Rule node always has an Output child node

This commit is contained in:
Henri DF 2016-02-22 18:55:11 -08:00
parent a7d0132154
commit 3a56c1a0e4

View File

@ -168,6 +168,9 @@ local function outputformat (format)
end
local function rule(filter, output)
if not output then
output = outputformat("")
end
return {type = "Rule", filter = filter, output = output}
end