lib/lisp.rb in lisp-1.0.3 vs lib/lisp.rb in lisp-1.0.4

- old
+ new

@@ -11,11 +11,11 @@ string.gsub("("," ( ").gsub(")"," ) ").split end def self.parse(tokens, tree = []) raise "unexpected: eof" if tokens.size.zero? - token = tokens.shift - case token + + case token = tokens.shift when "(" while tokens[0] != ")" do tree.push parse(tokens) end tokens.shift