Refactor "semantic_not" emitter function a bit

redux
David Majda 13 years ago
parent cc3bd4f310
commit 9111020ca2

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

Loading…
Cancel
Save