Пример #1
0
 @Override
 protected void eval(
     NoBracesStack stackState,
     AbstractStatement t,
     ListStatement o1,
     ListStatement o2,
     ListStatement c)
     throws EvaluationException {
   stackState.push(t);
   if (!(t instanceof MutableList)) {
     o1.dequote(stackState);
   } else {
     o2.dequote(stackState);
     LinkedList<AbstractStatement> tempLst = new LinkedList<AbstractStatement>();
     tempLst.add(o1);
     tempLst.add(o2);
     tempLst.add(c);
     tempLst.add(this);
     MutableList recur = new MutableList(tempLst);
     stackState.push(recur);
     c.dequote(stackState);
   }
 }
Пример #2
0
 @Override
 protected void eval(NoBracesStack stackState, AggregateStatement rest, AbstractStatement first) {
   stackState.push(rest);
   stackState.push(first);
 }