Added support for logic_negate

This commit is contained in:
Martin Haye 2017-08-10 09:56:33 -07:00
parent 276157fa8e
commit 4589d6ec66

View File

@ -4009,6 +4009,10 @@ end
}
}
def packLogicNegate(blk) {
out << "!("; packExpr(getSingle(blk.value, "BOOL").block[0]); out << ")"
}
def packMathArithmetic(blk)
{
def op = getSingle(blk.field, "OP").text()
@ -4078,6 +4082,9 @@ end
case 'logic_operation':
packLogicOperation(blk)
break
case 'logic_negate':
packLogicNegate(blk)
break
case 'variables_get':
packVarGet(blk)
break