Skip to content

Commit 38b5262

Browse files
committed
Missing Empty case from interp-heap and interp-heap-bits.
1 parent 7d84af8 commit 38b5262

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

langs/hustle/interp-heap-bits.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
(match e
2121
[(Lit d) (cons h (value->bits d))]
2222
[(Eof) (cons h (value->bits eof))]
23+
[(Empty) (cons h (value->bits '()))]
2324
[(Var x) (cons h (lookup r x))]
2425
[(Prim0 'void) (cons h (value->bits (void)))]
2526
[(Prim0 'read-byte) (cons h (value->bits (read-byte)))]

langs/hustle/interp-heap.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
(define (interp-env-heap e r h)
3131
(match e
3232
[(Lit d) (cons h d)]
33+
[(Empty) (cons h '())]
3334
[(Eof) (cons h eof)]
3435
[(Var x) (cons h (lookup r x))]
3536
[(Prim0 'void) (cons h (void))]

0 commit comments

Comments
 (0)