|
@@ -149,7 +149,7 @@ public class LispImpl implements Lisp {
|
|
|
private Object parseList(Stack<String> pile) throws LispError {
|
|
|
ConsList<Object> list = ConsListFactory.nil();
|
|
|
String val = pile.remove(0);
|
|
|
- while(pile.size() > 0 && !")".equals(val)) {
|
|
|
+ while(pile.size() != 0 && !")".equals(val)) {
|
|
|
if("(".equals(val)) {
|
|
|
//list = list.append(this.parse("(" + val));
|
|
|
list = list.append(this.parseList(pile));
|