Add support for the difference / negation operator.
[berndj-bootstrap.git] / lisp / test-input
blob68b6b6e612a7619618875d5cb3daa608152d0be2
1 (+ 4 5)
2 (- 23 7)
3 (cons 17 42)
4 (car (cons 17 42))
5 #t
6 cons
7 lambda
8 (lambda () 42)
9 ((lambda () 42))
10 ((lambda (a) (+ 2 a)) 17)
11 (quote ())
12 (quote (a b c))
13 (if #t 17 42)
14 (if #f 17 42)
15 (if #f 17)
16 (eq? (quote ()) (quote ()))
17 (eq? 12 12)
18 (eq? 12 24)
19 (eq? (cons 2 3) (cons 2 3))
20 (eq? (quote foo) (quote foo))
21 (eq? (quote foo) (quote bar))
22 (eq? "foo" "foo")
23 (eq? "foo" (quote foo))
24 (list? 17)
25 (list? (cons 17 42))
26 (list? (cons 17 (quote ())))
27 (primitive-eval (quote (+ 17 42)))
28 (define (foo a b) (+ a b)) (foo 17 42)
29 (cdr (quote (17 . 42)))
30 (quote (17 . (12 14)))
31 (define (foo x) (if (eq? x 5) 1 (+ (foo (+ x 1)) (foo (+ x 1))))) (foo 2)
32 ((lambda rest (cdr rest)) 1 2 3 4)
33 (define (mylist . rest) rest) (mylist 1 2 3 4)
34 (define (mymap f l) (if (eq? l (quote ())) (quote ()) (cons (f (car l)) (mymap f (cdr l))))) (mymap (lambda (x) (+ x 1)) (quote (1 2 4 8)))
35 (string->list "hello")