protected override string VisitUnary(Unary U)
        {
            int pr = Parser.Precedence(U.Operator);

            return(Unary.ToStringPrefix(U.Operator)
                   + Visit(U.Operand, pr)
                   + Unary.ToStringPostfix(U.Operator));
        }
Beispiel #2
0
 protected override PrettyString VisitUnary(Unary U)
 {
     return(PrettyString.ConcatColumns(Unary.ToStringPrefix(U.Operator), Visit(U.Operand), Unary.ToStringPostfix(U.Operator)));
 }