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; }
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); } }
public listOperator() { head = tail = null; }
public tokenoperadores(string lado) { this.next = this.back = null; operadores = new List <string>(); lado = ""; }