Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var e = new AdditionExpression(
                left: new DoubleExpression(1),
                right: new AdditionExpression(
                    left: new DoubleExpression(2),
                    right: new DoubleExpression(3)));
            var sb = new StringBuilder();

            ExpressionPrinter.Print2(e, sb);
            WriteLine(sb);
        }
Exemplo n.º 2
0
        public static void Main()
        {
            var e = new AdditionExpression(
                left: new DoubleExpression(1),
                right: new AdditionExpression(
                    left: new DoubleExpression(2),
                    right: new DoubleExpression(3)));
            var sb = new StringBuilder();

            ExpressionPrinter.Print(e, sb);
            Console.WriteLine(sb);
        }