Пример #1
0
        private string Decompile(IExpression expression)
        {
            StringWriter writer     = new StringWriter();
            IVisitor     decompiler = new DecompileVisitor(writer);

            expression.Accept(decompiler);

            writer.Close();

            return(writer.ToString());
        }
Пример #2
0
        private string Decompile(ICommand command)
        {
            StringWriter writer     = new StringWriter();
            IVisitor     decompiler = new DecompileVisitor(writer);

            command.Accept(decompiler);

            writer.Close();

            return(writer.ToString());
        }