Skip to content

Commit

Permalink
crook
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Nov 14, 2024
1 parent 221b5f5 commit da156f2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion iniquity/interp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
; check arity matches
(if (= (length xs) (length vs))
(interp-env e (zip xs vs) ds)
'err)])])]))
'err)])])]))

;; (Listof Expr) REnv Defns -> (Listof Value) | 'err
(define (interp-env* es r ds)
Expand Down
2 changes: 1 addition & 1 deletion jig/interp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
; check arity matches
(if (= (length xs) (length vs))
(interp-env e (zip xs vs) ds)
'err)])])]))
'err)])])]))

;; (Listof Expr) REnv Defns -> (Listof Value) | 'err
(define (interp-env* es r ds)
Expand Down
4 changes: 2 additions & 2 deletions knock/interp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
; check arity matches
(if (= (length xs) (length vs))
(interp-env e (zip xs vs) ds)
'err)])])]
'err)])])]
[(Match e ps es)
(match (interp-env e r ds)
['err 'err]
[v
(interp-match v ps es r ds)])]))
(interp-match v ps es r ds)])]))

;; (Listof Expr) REnv Defns -> (Listof Value) | 'err
(define (interp-env* es r ds)
Expand Down
4 changes: 2 additions & 2 deletions loot/interp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
[vs
(if (procedure? f)
(apply f vs)
'err)])])]
'err)])])]
[(Match e ps es)
(match (interp-env e r ds)
['err 'err]
Expand All @@ -84,7 +84,7 @@
; check arity matches
(if (= (length xs) (length vs))
(interp-env e (append (zip xs vs) r) ds)
'err))]))
'err))]))

;; (Listof Expr) REnv Defns -> (Listof Value) | 'err
(define (interp-env* es r ds)
Expand Down

0 comments on commit da156f2

Please sign in to comment.