README.md in lisp-1.0.0 vs README.md in lisp-1.0.1

- old
+ new

@@ -4,10 +4,14 @@ [![Code Climate](https://codeclimate.com/github/jamesmoriarty/lisp-rb.png)](https://codeclimate.com/github/jamesmoriarty/lisp-rb) [![Code Climate](https://codeclimate.com/github/jamesmoriarty/lisp-rb/coverage.png)](https://codeclimate.com/github/jamesmoriarty/lisp-rb) Lisp Interpreter in Ruby. Inspired by [Lis.py](http://norvig.com/lispy.html). ``` +> require 'lisp' +=> true +> Lisp.repl +ctrl-c to exit > (define pi 3.14) 3.14 > (* pi 2) 6.28 > (define area (lambda (r) (* 3.141592653 (* r r)))) @@ -44,8 +48,7 @@ - [x] __conditional__ - (if test conseq alt) Evaluate test; if true, evaluate and return conseq; otherwise evaluate and return alt. _Example: (if (< 10 20) (+ 1 1) (+ 3 3)) ⇒ 2_ - [ ] __quotation__ - (quote exp) Return the exp literally; do not evaluate it. _Example: (quote (a b c)) ⇒ (a b c)_ - [ ] __assignment__ - (set! var exp) Evaluate exp and assign that value to var, which must have been previously defined (with a define or as a parameter to an enclosing procedure). _Example: (set! x2 (* x x))_ - - [ ] __sequencing__ - (begin exp...) Evaluate each of the expressions in left-to-right order, and return the final value. _Example: (begin (set! x 1) (set! x (+ x 1)) (* x 2)) ⇒ 4_