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 f7106b6 commit b26f952
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jig/parse.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
;; S-Expr -> Expr
(define (parse-e s)
(match s
[(? datum?) (Lit s)]
['eof (Eof)]
[(? symbol?) (Var s)]
[(? datum?) (Lit s)]
[(list 'quote (list)) (Lit '())]
[(list (? op0? p0)) (Prim0 p0)]
[(list (? op1? p1) e) (Prim1 p1 (parse-e e))]
Expand Down
3 changes: 2 additions & 1 deletion loot/ast.rkt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#lang racket
(provide Lit Prim0 Prim1 Prim2 Prim3 If Eof Begin
Let Var Prog Defn App
Match Box Cons Conj Lam)
Match Box Cons Conj
Lam)

;; type Prog = (Prog (Listof Defn) Expr)
(struct Prog (ds e) #:prefab)
Expand Down
1 change: 0 additions & 1 deletion loot/interp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
(match (interp-match-pat p v r)
[#f (interp-match v ps es r ds)]
[r (interp-env e r ds)])]))

;; Pat Value Env -> [Maybe Env]
(define (interp-match-pat p v r)
(match p
Expand Down

0 comments on commit b26f952

Please sign in to comment.