/** * Gets the operands for this operator from the stack */ public void getOperands(Stack s) { ParseItem pi = (ParseItem) s.pop(); add(pi); }
/** * Gets the operands for this operator from the stack */ public void getOperands(Stack s) { ParseItem pi = (ParseItem) s.pop(); add(pi); }
Parenthesis p = new Parenthesis(); pi2.setParent(p); p.add(pi2); stack.push(p);
Parenthesis p = new Parenthesis(); pi2.setParent(p); p.add(pi2); stack.push(p);