Add tests
This commit is contained in:
parent
4d186e6b2b
commit
30133f80e7
8 changed files with 61 additions and 4 deletions
|
@ -1,6 +1,10 @@
|
|||
#lang typed/racket
|
||||
(require "ast.rkt")
|
||||
|
||||
(: prelude CoreProgram)
|
||||
(define prelude
|
||||
'((define (I x) x) (define (K x y) x) (define (K1 x y) y) (define (S f g x) ((f x) (g x))) (define (compose f g x) (f (g x))) (define (twice f) ((compose f) f))))
|
||||
|
||||
(struct State ([stack : Stack] [dump : Dump] [heap : Heap] [globals : Globals] [stats : Stats]))
|
||||
(define-type Addr Symbol)
|
||||
(define-type Stack (Listof Addr))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue