-
Notifications
You must be signed in to change notification settings - Fork 0
/
readMe.txt
14 lines (8 loc) · 850 Bytes
/
readMe.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
Justin Lim and Elliot Mawby
Dave Musicant, CS251
Interpreter test input files readMe.txt
01 - tests letrec() by defining two recursive functions in letrec and then executes them in body. Also tests primitive arithmetics (+), (=), and (-).
02 - tests more primitive arithmetics: (*), (/), (<), (>), and (modulo). Also tests the difference between let and let*, which uses primitive (=).
03 - Demo cases from assignment example. Tests (car), (cdr), (cons), and (null?).
04 - simplified cases from previous Racket homework assignment. User defined functions first-n and nth that return the first-n and nth items of a given list. Tests (null?), (-), (=), (car), (cdr), and (cond).
Extra stuff: implemented (booleans?) primitive that tests whether input evaluates to a boolean. arithmetic primatives should evaluate to int or double based on input.