Skip to content

Commit 7c90b33

Browse files
committed
up
1 parent 5ad5b83 commit 7c90b33

26 files changed

+23
-23
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/cons.scm renamed to examples/cons.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
;; # Null
1515

16-
(import true false "./boolean.scm")
16+
(import true false "./boolean.lisp")
1717

1818
(define (null f) true)
1919
(define (null? pair) (pair (lambda (car cdr) false)))

examples/factorial-half.scm renamed to examples/factorial-half.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(import zero? add mul sub1 "./nat-church.scm")
2-
(import zero one two three four "./nat-church.scm")
3-
(import if true false "./boolean.scm")
1+
(import zero? add mul sub1 "./nat-church.lisp")
2+
(import zero one two three four "./nat-church.lisp")
3+
(import if true false "./boolean.lisp")
44

55
;; (claim factorial-half
66
;; (fix (lambda (X) (-> X Nat Nat))))
File renamed without changes.

examples/factorial-wrap.scm renamed to examples/factorial-wrap.lisp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
(import zero? add mul sub1 "./nat-church.scm")
2-
(import zero one two three four "./nat-church.scm")
3-
(import if true false "./boolean.scm")
4-
(import Y turing "./fix.scm")
1+
(import zero? add mul sub1 "./nat-church.lisp")
2+
(import zero one two three four "./nat-church.lisp")
3+
(import if true false "./boolean.lisp")
4+
(import Y turing "./fix.lisp")
55

66
;; (claim factorial-wrap (-> (-> Nat Nat) (-> Nat Nat)))
77
;; (claim (Y factorial-wrap) (-> Nat Nat))
File renamed without changes.

examples/factorial.scm renamed to examples/factorial.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(import zero? add mul sub1 "./nat-church.scm")
2-
(import zero one two three four "./nat-church.scm")
3-
(import if true false "./boolean.scm")
1+
(import zero? add mul sub1 "./nat-church.lisp")
2+
(import zero one two three four "./nat-church.lisp")
3+
(import if true false "./boolean.lisp")
44

55
;; (claim factorial (-> Nat Nat))
66

File renamed without changes.
File renamed without changes.

examples/list.scm renamed to examples/list.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
(define (rec-List target nil-case li-case)
1111
(target nil-case li-case))
1212

13-
(import zero add1 "./nat-church.scm")
13+
(import zero add1 "./nat-church.lisp")
1414

1515
(define (length l)
1616
(rec-List l
1717
zero
1818
(lambda (head target almost)
1919
(add1 almost))))
2020

21-
(import true "./boolean.scm")
21+
(import true "./boolean.lisp")
2222

2323
(assert-equal (length nil) zero)
2424
(assert-equal (length (li true nil)) (add1 zero))

examples/nat-church.scm renamed to examples/nat-church.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292

9393
;; # zero?
9494

95-
(import true false if and or not "./boolean.scm")
95+
(import true false if and or not "./boolean.lisp")
9696

9797
(define (zero? n) (iter-Nat n true (lambda (x) false)))
9898

@@ -105,7 +105,7 @@
105105
;; The `sub1` about is `O(n)`,
106106
;; while `sub1` for Scott encoding is `O(3)`.
107107

108-
(import cons car cdr "./cons.scm")
108+
(import cons car cdr "./cons.lisp")
109109

110110
(define (shift-add1 x)
111111
(cons (cdr x) (add1 (cdr x))))

examples/nat-even-odd.scm renamed to examples/nat-even-odd.lisp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
(import true false if and or not "./boolean.scm")
2-
(import zero add1 sub1 zero? "./nat-church.scm")
3-
(import one two three four "./nat-church.scm")
4-
(import Y "./fix.scm")
1+
(import true false if and or not "./boolean.lisp")
2+
(import zero add1 sub1 zero? "./nat-church.lisp")
3+
(import one two three four "./nat-church.lisp")
4+
(import Y "./fix.lisp")
55

66
(define (even? n)
77
(if (zero? n) true
File renamed without changes.

examples/nat-scott.scm renamed to examples/nat-scott.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(import Y "./fix.scm")
1+
(import Y "./fix.lisp")
22

33
;; Scott Encoding of Natural Number
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/tests/import.scm renamed to examples/tests/import.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(import id compose (rename compose c) "./compose.scm")
1+
(import id compose (rename compose c) "./compose.lisp")
22

33
(assert-equal
44
(compose
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"build": "tsc",
1717
"build:watch": "tsc --watch",
1818
"test:node": "node --test lib/**/*.test.js",
19-
"test:lang": "test-runner snapshot 'node ./lib/main.js run' 'examples/**/*.scm' --exclude 'examples/**/*.error.scm'",
20-
"test:lang:error": "test-runner snapshot-error 'node ./lib/main.js run' 'examples/**/*.error.scm'",
19+
"test:lang": "test-runner snapshot 'node ./lib/main.js run' 'examples/**/*.lisp' --exclude 'examples/**/*.error.lisp'",
20+
"test:lang:error": "test-runner snapshot-error 'node ./lib/main.js run' 'examples/**/*.error.lisp'",
2121
"test": "npm run test:node && npm run test:lang && npm run test:lang:error",
2222
"format": "prettier src --write"
2323
},

0 commit comments

Comments
 (0)