public void Encode(ASTUnary node) { NumExpr expr = m_stack.Pop(); m_stack.Push(node.Plus ? new NumExpr(expr.IsTrueValue, expr.Value, String.Format("+{0}", expr.Code)) : new NumExpr(expr.IsTrueValue, expr.Value.Negate(), String.Format("-{0}", expr.Code)) ); }
public void Encode(ASTUnary node) { throw new NotImplementedException(String.Format(s_notImplementedTypeEncoding, node.GetType().FullName)); }