Ejemplo n.º 1
0
        public void push(List <string> l, string lado)
        {
            tokenoperadores it = new tokenoperadores(lado);

            it.operadores = l;
            if (this.isempty())
            {
                this.head = it;
                this.tail = this.head;
                return;
            }
            this.tail.next = it;
            this.tail      = it;
            return;
        }
Ejemplo n.º 2
0
 public bool containselemento(string s)
 {
     if (this.isempty() == true)
     {
         return(false);
     }
     else
     {
         tokenoperadores i = this.head;
         bool            b = false;
         while (i != null && b == false)
         {
             if (i.operadores.Contains(s) == true)
             {
                 b = true;
             }
             else
             {
                 i = i.next;
             }
         }
         return(b);
     }
 }
Ejemplo n.º 3
0
 public listOperator()
 {
     head = tail = null;
 }
Ejemplo n.º 4
0
 public tokenoperadores(string lado)
 {
     this.next  = this.back = null;
     operadores = new List <string>();
     lado       = "";
 }