public void Visit(Client client)
 {
     _sb.Append("declare client "+client.Name+" : \n\t");
     foreach (var t in client.Tunnels)
     {
         t.Accept(this);
         _sb.Append(";\n\t");
     }
     foreach (var f in client.Functions)
     {
         f.Accept(this);
     }
 }
 public void Add(Client c)
 {
     PartEnv ce = new PartEnvClient(c);
     Clients.Add(ce);
     VisitPartEnv = ce;
 }
        public void Visit(Client client)
        {
            _className = client.Name;
            _sb.Append("class " + _className + "(Client): \n");
            Level++;
            Indent();
            _sb.Append("def __init__(self, cliAddr, srvAddr):\n");
            Level++;
            Indent();
            _sb.Append("super(" + _className + ", self).__init__(cliAddr, srvAddr)\n");

            foreach (var t in client.Tunnels)
            {
                Indent();
                t.Accept(this);
                //_sb.Append("\n\t");
            }
            Level--;

            foreach (var f in client.Functions)
            {
                f.Accept(this);
            }
            Level--;
        }
 public void Visit(Client client)
 {
     _env.Add(client);
     client.SmclType = ClientType;
     foreach (var t in client.Tunnels)
     {
         t.Accept(this);
     }
     foreach (var f in client.Functions)
     {
         f.Accept(this);
     }
 }