Skip to content

Commit 6fe7952

Browse files
committed
feat: add examples/
1 parent ad5eb66 commit 6fe7952

20 files changed

+375
-0
lines changed

examples/errors/fl1_1.lisp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
;fun k
2+
(defun k1 () ;good
3+
(f 1))
4+
5+
(defun c () 3)
6+
7+
(defun b ()
8+
2
9+
4
10+
(r 1)
11+
+4 ;;;hoho
12+
7
13+
"12 3 4"
14+
(r -2)
15+
(k 10 (20 89) 30)
16+
"12 c"
17+
(rata 1)
18+
8
19+
2)

examples/errors/fl1_2.lisp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(defun c ()
2+
3)
3+
4+
(defun k1 () (f 1))
5+
6+
(defun b ()
7+
2
8+
4
9+
(a 1 2 3)
10+
(r 1)
11+
4
12+
7
13+
(k 10 (20 89
14+
666)
15+
30
16+
(rata 1))
17+
"12 c"
18+
8
19+
2)
20+
21+
(defun c2 () 3)

examples/errors/fl2_1.lisp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
;fun k
2+
(defun k1 () ;good
3+
(f :222 1))
4+
5+
(defun c |243| () 3)
6+
7+
(defun b ()
8+
2
9+
4
10+
(r 1)
11+
+4 ;;;hoho
12+
7
13+
"12 3 4"
14+
(r -2)
15+
(k 10 (20 89) 30)
16+
"12 c
17+
(rata 1)
18+
8
19+
2)

examples/errors/fl2_2.lisp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(defun c ()
2+
3)
3+
4+
(defun k1 () (f 1))
5+
6+
(defun b ()
7+
2
8+
4
9+
(a 1 2 3)
10+
(r 1)
11+
4
12+
7
13+
(k 10 (20 89
14+
666)
15+
30
16+
(rata 1))
17+
"12 c"
18+
8
19+
2)
20+
21+
(defun c2 () 3)

examples/errors/fl3_1.lisp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
;fun k
2+
(defun k1 () ;good
3+
(f :222 1))
4+
5+
(defun c |243| () 3)
6+
7+
(defun b ()
8+
2
9+
4
10+
(r 1)
11+
+4 ;;;hoho
12+
7
13+
"12 3 4"
14+
(r -2)
15+
(k 10 (20 89) 30)
16+
"12 c
17+
(rata 1)
18+
8
19+
2)

examples/errors/fl3_2.lisp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(defun c ()
2+
3)
3+
4+
(defun k1 () (f 1))
5+
6+
(defun b ()
7+
2
8+
4
9+
(a 1 2 3)
10+
(r 1)
11+
4
12+
7
13+
(k 10 (20 89
14+
|666)
15+
30
16+
(rata 1||))
17+
"12 c"
18+
8
19+
2)
20+
21+
(defun c2 () 3)

examples/errors/fl4_1.lisp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
;fun k
2+
(defun k1 () ;good
3+
(f 1))
4+
5+
(defun c () 3)
6+
7+
(defun b ()
8+
2
9+
4
10+
(r 1)
11+
+4 ;;;hoho
12+
7
13+
"12 3 4"
14+
(r -2)
15+
(k 10 (20 89 30)
16+
"12 c
17+
(rata 1)
18+
8
19+
2")

examples/errors/fl4_2.lisp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(defun c ()
2+
3)
3+
4+
defun k1 () (f 1))
5+
6+
(defun b ()
7+
2
8+
4
9+
(a 1 2 3)
10+
(r 1)
11+
4
12+
7
13+
(k 10 (20 89
14+
666)
15+
30
16+
(rata 1))
17+
"12 c"
18+
8
19+
2)
20+
21+
(defun c2 () 3)

examples/normal/f4_1.lisp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(defun f1 ()
2+
(let ((a 2))
3+
a))

examples/normal/f4_2.lisp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
(defun f1 ()
2+
(let ((a 2)
3+
(b 3))
4+
a))

0 commit comments

Comments
 (0)