Refactor "semantic_not" emitter function a bit

redux
David Majda 13 years ago
parent cc3bd4f310
commit 9111020ca2

@ -734,10 +734,10 @@ PEG.compiler.emitter = function(ast) {
semantic_not: function(node, context) {
return formatCode(
'#{resultVar} = (function() {#{actionCode}})() ? null : "";',
'#{resultVar} = (function() {#{node.code}})() ? null : "";',
{
actionCode: node.code,
resultVar: resultVar(context.resultIndex)
node: node,
resultVar: resultVar(context.resultIndex)
}
);
},

Loading…
Cancel
Save